org.apache.http.entity.mime
Class MultipartEntity
java.lang.Object
org.apache.http.entity.mime.MultipartEntity
- All Implemented Interfaces:
- org.apache.http.HttpEntity
public class MultipartEntity
- extends Object
- implements org.apache.http.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)
generateBoundary
protected String generateBoundary()
addPart
public void addPart(FormBodyPart bodyPart)
addPart
public void addPart(String name,
ContentBody contentBody)
isRepeatable
public boolean isRepeatable()
- Specified by:
isRepeatable
in interface org.apache.http.HttpEntity
isChunked
public boolean isChunked()
- Specified by:
isChunked
in interface org.apache.http.HttpEntity
isStreaming
public boolean isStreaming()
- Specified by:
isStreaming
in interface org.apache.http.HttpEntity
getContentLength
public long getContentLength()
- Specified by:
getContentLength
in interface org.apache.http.HttpEntity
getContentType
public org.apache.http.Header getContentType()
- Specified by:
getContentType
in interface org.apache.http.HttpEntity
getContentEncoding
public org.apache.http.Header getContentEncoding()
- Specified by:
getContentEncoding
in interface org.apache.http.HttpEntity
consumeContent
public void consumeContent()
throws IOException,
UnsupportedOperationException
- Specified by:
consumeContent
in interface org.apache.http.HttpEntity
- Throws:
IOException
UnsupportedOperationException
getContent
public InputStream getContent()
throws IOException,
UnsupportedOperationException
- Specified by:
getContent
in interface org.apache.http.HttpEntity
- Throws:
IOException
UnsupportedOperationException
writeTo
public void writeTo(OutputStream outstream)
throws IOException
- Specified by:
writeTo
in interface org.apache.http.HttpEntity
- Throws:
IOException
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.