java.lang.Object | |
↳ | com.ning.http.multipart.MultipartRequestEntity |
This class is an adaptation of the Apache HttpClient implementationhttp://hc.apache.org/httpclient-3.x/
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
parts | The MIME parts as set by the constructor |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new multipart entity containing the given parts.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the request entity's length.
| |||||||||||
Gets the entity's content type.
| |||||||||||
Returns
true if all parts are repeatable, false otherwise. | |||||||||||
Writes the request entity to the given stream.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the MIME boundary string that is used to demarcate boundaries of
this part.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Creates a new multipart entity containing the given parts.
parts | The parts to include. |
---|---|
methodParams | The params of the HttpMethod using this entity. |
Gets the request entity's length. This method should return a non-negative value if the content length is known or a negative value if it is not. In the latter case the EntityEnclosingMethod will use chunk encoding to transmit the request entity.
Gets the entity's content type. This content type will be used as the value for the "Content-Type" header.
Returns true
if all parts are repeatable, false
otherwise.
Writes the request entity to the given stream.
IOException |
---|
Returns the MIME boundary string that is used to demarcate boundaries of this part. The first call to this method will implicitly create a new boundary string. To create a boundary string first the HttpMethodParams.MULTIPART_BOUNDARY parameter is considered. Otherwise a random one is generated.