|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.naming.Util
public final class Util
Utility methods originally defined in org.apache.catalina.util.RequestUtil and moved here in order to become accessible to code in web-naming and war-util.
| Constructor Summary | |
|---|---|
Util()
|
|
| Method Summary | |
|---|---|
static byte |
convertHexDigit(byte b)
Convert a byte character value to hexidecimal digit value. |
static java.lang.String |
normalize(java.lang.String path,
boolean replaceBackSlash)
Normalize a relative URI path that may have relative values ("/./", "/../", and so on ) it it. |
static java.lang.String |
urlDecode(byte[] bytes)
Decode and return the specified URL-encoded byte array. |
static java.lang.String |
urlDecode(byte[] bytes,
java.lang.String enc)
Decode and return the specified URL-encoded byte array. |
static java.lang.String |
urlDecode(java.lang.String str)
Decode and return the specified URL-encoded String. |
static java.lang.String |
urlDecode(java.lang.String str,
java.lang.String enc)
Decode and return the specified URL-encoded String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Util()
| Method Detail |
|---|
public static java.lang.String normalize(java.lang.String path,
boolean replaceBackSlash)
path - Relative path to be normalizedreplaceBackSlash - Should '\\' be replaced with '/'public static java.lang.String urlDecode(java.lang.String str)
str - The url-encoded string
java.lang.IllegalArgumentException - if a '%' character is not followed
by a valid 2-digit hexadecimal number
public static java.lang.String urlDecode(java.lang.String str,
java.lang.String enc)
str - The url-encoded stringenc - The encoding to use; if null, the default encoding is used
java.lang.IllegalArgumentException - if a '%' character is not followed
by a valid 2-digit hexadecimal numberpublic static java.lang.String urlDecode(byte[] bytes)
bytes - The url-encoded byte array
java.lang.IllegalArgumentException - if a '%' character is not followed
by a valid 2-digit hexadecimal number
public static java.lang.String urlDecode(byte[] bytes,
java.lang.String enc)
bytes - The url-encoded byte arrayenc - The encoding to use; if null, the default encoding is used
java.lang.IllegalArgumentException - if a '%' character is not followed
by a valid 2-digit hexadecimal numberpublic static byte convertHexDigit(byte b)
b - the character value byte
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||