Package org.apache.http.entity.mime
Class MultipartFormEntity
- java.lang.Object
-
- org.apache.http.entity.mime.MultipartFormEntity
-
- All Implemented Interfaces:
org.apache.http.HttpEntity
class MultipartFormEntity extends java.lang.Object implements org.apache.http.HttpEntity
-
-
Field Summary
Fields Modifier and Type Field Description private long
contentLength
private org.apache.http.Header
contentType
private AbstractMultipartForm
multipart
-
Constructor Summary
Constructors Constructor Description MultipartFormEntity(AbstractMultipartForm multipart, org.apache.http.entity.ContentType contentType, long contentLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
multipart
private final AbstractMultipartForm multipart
-
contentType
private final org.apache.http.Header contentType
-
contentLength
private final long contentLength
-
-
Constructor Detail
-
MultipartFormEntity
MultipartFormEntity(AbstractMultipartForm multipart, org.apache.http.entity.ContentType contentType, long contentLength)
-
-
Method Detail
-
getMultipart
AbstractMultipartForm getMultipart()
-
isRepeatable
public boolean isRepeatable()
- Specified by:
isRepeatable
in interfaceorg.apache.http.HttpEntity
-
isChunked
public boolean isChunked()
- Specified by:
isChunked
in interfaceorg.apache.http.HttpEntity
-
isStreaming
public boolean isStreaming()
- Specified by:
isStreaming
in interfaceorg.apache.http.HttpEntity
-
getContentLength
public long getContentLength()
- Specified by:
getContentLength
in interfaceorg.apache.http.HttpEntity
-
getContentType
public org.apache.http.Header getContentType()
- Specified by:
getContentType
in interfaceorg.apache.http.HttpEntity
-
getContentEncoding
public org.apache.http.Header getContentEncoding()
- Specified by:
getContentEncoding
in interfaceorg.apache.http.HttpEntity
-
consumeContent
public void consumeContent()
- Specified by:
consumeContent
in interfaceorg.apache.http.HttpEntity
-
getContent
public java.io.InputStream getContent() throws java.io.IOException
- Specified by:
getContent
in interfaceorg.apache.http.HttpEntity
- Throws:
java.io.IOException
-
writeTo
public void writeTo(java.io.OutputStream outStream) throws java.io.IOException
- Specified by:
writeTo
in interfaceorg.apache.http.HttpEntity
- Throws:
java.io.IOException
-
-