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
_allowableInUrl
protected static String
_allowableInUrlQuery
static Charset
utf8Charset
-
Constructor Summary
Constructors Constructor Description Escape()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
backslashDecode(String s)
Define the DEFINITIVE URL BACKSLASH unescape function.static String
backslashEncode(String s)
Define the DEFINITIVE URL BACKSLASH escape function.static String
escapeURL(String surl)
static String
escapeURLQuery(String ce)
Define the DEFINITIVE URL constraint expression escape function.static String
unescapeURLQuery(String ce)
Define the DEFINITIVE URL constraint expression unescape function.static String
urlDecode(String s)
Define the DEFINITIVE URL unescape function.static String
urlEncode(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.
-
-