java.lang.Object | |
↳ | chan.http.SimpleEntity |
Simple implementation of RequestEntity
.
Method add(String, String)
is not supported for this entity.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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. | |||||||||||
Sets a content type of entity. | |||||||||||
Sets string | |||||||||||
Sets byte array | |||||||||||
Sets string | |||||||||||
Writes entity to given |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
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. |
Sets a content type of entity.
Parameters | |
---|---|
contentType |
String :
Content type.
|
Sets string data
with UTF-8 encoding.
Parameters | |
---|---|
data |
String :
String data.
|
Sets byte array data
.
Parameters | |
---|---|
data |
byte :
Byte array data.
|
Sets string data
with given charsetName
encoding.
Parameters | |
---|---|
data |
String :
String data. |
charsetName |
String :
Charset name.
|
Writes entity to given output
.
Parameters | |
---|---|
output |
OutputStream :
Output stream. |
Throws | |
---|---|
IOException |