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 longcontentLengthprivate org.apache.http.HeadercontentTypeprivate AbstractMultipartFormmultipart
-
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 voidconsumeContent()java.io.InputStreamgetContent()org.apache.http.HeadergetContentEncoding()longgetContentLength()org.apache.http.HeadergetContentType()(package private) AbstractMultipartFormgetMultipart()booleanisChunked()booleanisRepeatable()booleanisStreaming()voidwriteTo(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:
isRepeatablein interfaceorg.apache.http.HttpEntity
-
isChunked
public boolean isChunked()
- Specified by:
isChunkedin interfaceorg.apache.http.HttpEntity
-
isStreaming
public boolean isStreaming()
- Specified by:
isStreamingin interfaceorg.apache.http.HttpEntity
-
getContentLength
public long getContentLength()
- Specified by:
getContentLengthin interfaceorg.apache.http.HttpEntity
-
getContentType
public org.apache.http.Header getContentType()
- Specified by:
getContentTypein interfaceorg.apache.http.HttpEntity
-
getContentEncoding
public org.apache.http.Header getContentEncoding()
- Specified by:
getContentEncodingin interfaceorg.apache.http.HttpEntity
-
consumeContent
public void consumeContent()
- Specified by:
consumeContentin interfaceorg.apache.http.HttpEntity
-
getContent
public java.io.InputStream getContent() throws java.io.IOException- Specified by:
getContentin interfaceorg.apache.http.HttpEntity- Throws:
java.io.IOException
-
writeTo
public void writeTo(java.io.OutputStream outStream) throws java.io.IOException- Specified by:
writeToin interfaceorg.apache.http.HttpEntity- Throws:
java.io.IOException
-
-