java.lang.Object | |
↳ | chan.http.UrlEncodedEntity |
URL Encoded implementation of RequestEntity
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Default constructor for an | |||||||||||
Constructor for an |
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. | |||||||||||
Changes encoding type for this entity. | |||||||||||
Writes entity to given |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructor for an UrlEncodedEntity
.
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.
|
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 |