class MultipartFormEntity
extends java.lang.Object
implements org.apache.http.HttpEntity
Modifier and Type | Field and Description |
---|---|
private long |
contentLength |
private org.apache.http.Header |
contentType |
private AbstractMultipartForm |
multipart |
Constructor and Description |
---|
MultipartFormEntity(AbstractMultipartForm multipart,
org.apache.http.entity.ContentType contentType,
long contentLength) |
Modifier and Type | Method and Description |
---|---|
void |
consumeContent() |
java.io.InputStream |
getContent() |
org.apache.http.Header |
getContentEncoding() |
long |
getContentLength() |
org.apache.http.Header |
getContentType() |
(package private) AbstractMultipartForm |
getMultipart() |
boolean |
isChunked() |
boolean |
isRepeatable() |
boolean |
isStreaming() |
void |
writeTo(java.io.OutputStream outstream) |
private final AbstractMultipartForm multipart
private final org.apache.http.Header contentType
private final long contentLength
MultipartFormEntity(AbstractMultipartForm multipart, org.apache.http.entity.ContentType contentType, long contentLength)
AbstractMultipartForm getMultipart()
public boolean isRepeatable()
isRepeatable
in interface org.apache.http.HttpEntity
public boolean isChunked()
isChunked
in interface org.apache.http.HttpEntity
public boolean isStreaming()
isStreaming
in interface org.apache.http.HttpEntity
public long getContentLength()
getContentLength
in interface org.apache.http.HttpEntity
public org.apache.http.Header getContentType()
getContentType
in interface org.apache.http.HttpEntity
public org.apache.http.Header getContentEncoding()
getContentEncoding
in interface org.apache.http.HttpEntity
public void consumeContent()
consumeContent
in interface org.apache.http.HttpEntity
public java.io.InputStream getContent() throws java.io.IOException
getContent
in interface org.apache.http.HttpEntity
java.io.IOException
public void writeTo(java.io.OutputStream outstream) throws java.io.IOException
writeTo
in interface org.apache.http.HttpEntity
java.io.IOException