Package ucar.httpservices
Class Escape
- java.lang.Object
-
- ucar.httpservices.Escape
-
public class Escape extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static String_allowableInUrlprotected static String_allowableInUrlQuerystatic Charsetutf8Charset
-
Constructor Summary
Constructors Constructor Description Escape()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringbackslashDecode(String s)Define the DEFINITIVE URL BACKSLASH unescape function.static StringbackslashEncode(String s)Define the DEFINITIVE URL BACKSLASH escape function.static StringescapeURL(String surl)static StringescapeURLQuery(String ce)Define the DEFINITIVE URL constraint expression escape function.static StringunescapeURLQuery(String ce)Define the DEFINITIVE URL constraint expression unescape function.static StringurlDecode(String s)Define the DEFINITIVE URL unescape function.static StringurlEncode(String s)Define the DEFINITIVE URL escape function.
-
-
-
Field Detail
-
utf8Charset
public static final Charset utf8Charset
-
_allowableInUrl
protected static final String _allowableInUrl
- See Also:
- Constant Field Values
-
_allowableInUrlQuery
protected static final String _allowableInUrlQuery
- See Also:
- Constant Field Values
-
-
Method Detail
-
escapeURLQuery
public static String escapeURLQuery(String ce)
Define the DEFINITIVE URL constraint expression escape function.- Parameters:
ce- The expression to modify.- Returns:
- The escaped expression.
-
unescapeURLQuery
public static String unescapeURLQuery(String ce)
Define the DEFINITIVE URL constraint expression unescape function.- Parameters:
ce- The expression to unescape.- Returns:
- The unescaped expression.
-
urlEncode
public static String urlEncode(String s)
Define the DEFINITIVE URL escape function. Note that the whole string is escaped, so be careful what you pass into this procedure.- Parameters:
s- The string to modify.- Returns:
- The escaped expression.
-
urlDecode
public static String urlDecode(String s)
Define the DEFINITIVE URL unescape function.- Parameters:
s- The string to unescape.- Returns:
- The unescaped expression.
-
backslashDecode
public static String backslashDecode(String s)
Define the DEFINITIVE URL BACKSLASH unescape function.- Parameters:
s- The string to unescape.- Returns:
- The unescaped expression.
-
-