|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.http.client.utils.URLUtils
public class URLUtils
The home for utility methods that handle various URL encoding tasks.
Method Summary | |
---|---|
static java.lang.String |
formUrlEncode(org.apache.http.NameValuePair[] pairs,
java.lang.String charset)
Form-urlencoding routine. |
static java.lang.String |
simpleFormUrlEncode(org.apache.http.NameValuePair[] pairs,
java.lang.String charset)
Form-urlencoding routine. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String simpleFormUrlEncode(org.apache.http.NameValuePair[] pairs, java.lang.String charset)
if the given charset is not supported, ISO-8859-1 is used instead.
pairs
- the values to be encodedcharset
- the character set of pairs to be encoded
public static java.lang.String formUrlEncode(org.apache.http.NameValuePair[] pairs, java.lang.String charset) throws java.io.UnsupportedEncodingException
pairs
- the values to be encodedcharset
- the character set of pairs to be encoded
java.io.UnsupportedEncodingException
- if charset is not supported
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |