java.lang.Object | |
↳ | org.apache.http.client.utils.URLEncodedUtils |
This class is deprecated.
Please use openConnection()
instead.
Please visit this webpage
for further details.
A collection of utilities for encoding URLs.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | CONTENT_TYPE |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a String that is suitable for use as an
application/x-www-form-urlencoded
list of parameters in an HTTP PUT or HTTP POST.
| |||||||||||
Returns true if the entity's Content-Type header is
application/x-www-form-urlencoded .
| |||||||||||
Returns a list of
NameValuePairs as built from the
URI's query portion.
| |||||||||||
Returns a list of
NameValuePairs as parsed from an
HttpEntity .
| |||||||||||
Adds all parameters within the Scanner to the list of
parameters , as encoded by encoding .
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Returns a String that is suitable for use as an application/x-www-form-urlencoded
list of parameters in an HTTP PUT or HTTP POST.
parameters | The parameters to include. |
---|---|
encoding | The encoding to use. |
Returns true if the entity's Content-Type header is
application/x-www-form-urlencoded
.
Returns a list of NameValuePairs
as built from the
URI's query portion. For example, a URI of
http://example.org/path/to/file?a=1&b=2&c=3 would return a list of three
NameValuePairs, one for a=1, one for b=2, and one for c=3.
This is typically useful while parsing an HTTP PUT.
uri | uri to parse |
---|---|
encoding | encoding to use while parsing the query |
Returns a list of NameValuePairs
as parsed from an
HttpEntity
. The encoding is taken from the entity's
Content-Encoding header.
This is typically used while parsing an HTTP POST.
entity | The entity to parse |
---|
IOException | If there was an exception getting the entity's data. |
---|
Adds all parameters within the Scanner to the list of
parameters
, as encoded by encoding
. For
example, a scanner containing the string a=1&b=2&c=3
would
add the NameValuePairs
a=1, b=2, and c=3 to the
list of parameters.
parameters | List to add parameters to. |
---|---|
scanner | Input that contains the parameters to parse. |
encoding | Encoding to use when decoding the parameters. |