| java.lang.Object | |||
| ↳ | com.ning.http.multipart.Part | ||
| ↳ | com.ning.http.multipart.PartBase | ||
| ↳ | com.ning.http.multipart.StringPart | ||
This class is an adaptation of the Apache HttpClient implementationhttp://hc.apache.org/httpclient-3.x/
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | DEFAULT_CHARSET | Default charset of string parameters | |||||||||
| String | DEFAULT_CONTENT_TYPE | Default content encoding of string parameters. | |||||||||
| String | DEFAULT_TRANSFER_ENCODING | Default transfer encoding of string parameters | |||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.ning.http.multipart.Part
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructor.
| |||||||||||
Constructor.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Sets the character encoding.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Return the length of the data.
| |||||||||||
Writes the data to the given OutputStream.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.ning.http.multipart.PartBase
| |||||||||||
From class
com.ning.http.multipart.Part
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.ning.http.client.Part
| |||||||||||
Default charset of string parameters
Default content encoding of string parameters.
Default transfer encoding of string parameters
Constructor.
| name | The name of the part |
|---|---|
| value | the string to post |
Constructor.
| name | The name of the part |
|---|---|
| value | the string to post |
| charset | the charset to be used to encode the string, if null
the default is used
|
Sets the character encoding.
| charSet | the character encoding, or null to exclude the character
encoding header
|
|---|
Return the length of the data.
| IOException | If an IO problem occurs |
|---|
Writes the data to the given OutputStream.
| out | the OutputStream to write to |
|---|
| IOException | if there is a write error |
|---|