java.lang.Object | |
↳ | chan.http.MultipartEntity |
Multipart Form Data implementation of RequestEntity
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Default constructor for a | |||||||||||
Constructor for a |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add string field to entity with given | |||||||||||
Add file field to entity with given | |||||||||||
Returns a deep copy of this | |||||||||||
Returns a content length of entity. | |||||||||||
Returns a content type of entity. | |||||||||||
Changes encoding type for this entity. | |||||||||||
Writes entity to given |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructor for a MultipartEntity
.
Parameters | |
---|---|
alternation |
String :
Alternation of string field's names and values (name, value, name, value...).
|
Add string field to entity with given name
and value
.
Parameters | |
---|---|
name |
String :
Field name. |
value |
String :
Field value.
|
Add file field to entity with given name
and file
.
Parameters | |
---|---|
name |
String :
Field name. |
file |
File :
File to write.
|
Returns a deep copy of this RequestEntity
instance.
Returns | |
---|---|
RequestEntity |
Copy of this entity. |
Returns a content length of entity.
Returns | |
---|---|
long |
Content length. |
Returns a content type of entity.
Returns | |
---|---|
String |
Content type. |
Changes encoding type for this entity. By default UTF-8 is used.
Parameters | |
---|---|
charsetName |
String :
Charset name.
|
Writes entity to given output
.
Parameters | |
---|---|
output |
OutputStream :
Output stream. |
Throws | |
---|---|
IOException |