org.apache.http.entity.mime
Class MultipartEntity
java.lang.Object
   org.apache.http.entity.mime.MultipartEntity
org.apache.http.entity.mime.MultipartEntity
- All Implemented Interfaces: 
- HttpEntity
- @ThreadSafe
public class MultipartEntity 
- extends Object- implements HttpEntity
Multipart/form coded HTTP entity consisting of multiple
 body parts.
- Since:
- 4.0
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
MultipartEntity
public MultipartEntity(HttpMultipartMode mode,
                       String boundary,
                       Charset charset)
MultipartEntity
public MultipartEntity(HttpMultipartMode mode)
MultipartEntity
public MultipartEntity()
generateContentType
protected String generateContentType(String boundary,
                                     Charset charset)
- 
 
- 
 
addPart
public void addPart(String name,
                    ContentBody contentBody)
- 
 
- 
 
isRepeatable
public boolean isRepeatable()
- 
- Specified by:
- isRepeatablein interface- HttpEntity
 
- 
 
isChunked
public boolean isChunked()
- 
- Specified by:
- isChunkedin interface- HttpEntity
 
- 
 
isStreaming
public boolean isStreaming()
- 
- Specified by:
- isStreamingin interface- HttpEntity
 
- 
 
getContentLength
public long getContentLength()
- 
- Specified by:
- getContentLengthin interface- HttpEntity
 
- 
 
getContentType
public Header getContentType()
- 
- Specified by:
- getContentTypein interface- HttpEntity
 
- 
 
getContentEncoding
public Header getContentEncoding()
- 
- Specified by:
- getContentEncodingin interface- HttpEntity
 
- 
 
consumeContent
public void consumeContent()
                    throws IOException,
                           UnsupportedOperationException
- 
- Specified by:
- consumeContentin interface- HttpEntity
 
- 
- Throws:
- IOException
- UnsupportedOperationException
 
getContent
public InputStream getContent()
                       throws IOException,
                              UnsupportedOperationException
- 
- Specified by:
- getContentin interface- HttpEntity
 
- 
- Throws:
- IOException
- UnsupportedOperationException
 
writeTo
public void writeTo(OutputStream outstream)
             throws IOException
- 
- Specified by:
- writeToin interface- HttpEntity
 
- 
- Throws:
- IOException
 
Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.