|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.autonomy.utilities.HTTPUtils
Library of functions specifically used for processing HTTP connections
Constructor Summary | |
HTTPUtils()
|
Method Summary | |
static boolean |
charNeedsURLEncoding(char c)
Returns true if c should be URL Encoded, if it appears as part of a URL |
static java.lang.String |
getURLContents(java.lang.String sURL)
Download the contents of the given URL and store in a String |
static java.lang.String |
URLDecode(java.lang.String sToDecode,
java.lang.String sEncoding)
A URL Unescaping function that works with non-ASCII characters on non-English locales |
static java.lang.String |
URLEncode(java.lang.String sToEncode,
java.lang.String sEncoding)
A URL Escaping function that works with non-ASCII characters on non-English locales |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HTTPUtils()
Method Detail |
public static java.lang.String getURLContents(java.lang.String sURL)
sURL
- URL to download
public static java.lang.String URLEncode(java.lang.String sToEncode, java.lang.String sEncoding)
sToEncode
- String to encodesEncoding
- String to represent encoding type
public static boolean charNeedsURLEncoding(char c)
public static java.lang.String URLDecode(java.lang.String sToDecode, java.lang.String sEncoding) throws java.lang.Exception
sToDecode
- String to decodesEncoding
- String to represent encoding type
java.lang.Exception
- if encoding is invalid or sToDecode is not a valid URL escaped string
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |