chan.http.RequestEntity |
![]() |
HTTP request entity. Used to pass data with HTTP POST request.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add string field to entity with given | |||||||||||
Returns a deep copy of this | |||||||||||
Returns a content length of entity. | |||||||||||
Returns a content type of entity. | |||||||||||
Writes entity to given |
Add string field to entity with given name
and value
.
Parameters | |
---|---|
name |
String :
Field name. |
value |
String :
Field value.
|
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. |
Writes entity to given output
.
Parameters | |
---|---|
output |
OutputStream :
Output stream. |
Throws | |
---|---|
IOException |
if an error occurs while writing to given output .
|