UTF-8 encoding is used by default for % encoded characters. This may be overridden with the org.mortbay.util.URI.charset system property.
UrlEncoded
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static StringBuilder | Returns: The StringBuilder or null if no substitutions required.StringBuilder to encode path into (or null) buf, String The path the encode path)Encode a URI path. |
| public static StringBuilder | Returns: The StringBuilder or null if no substitutions required.StringBuilder to encode path into (or null) buf, String The path the encode path, String String of characters to encode. % is always encoded. encode)Encode a URI path. |
| public static boolean | |
| public static String | |
| public static String |
| __CHARSET | back to summary |
|---|---|
| public static final String __CHARSET | |
| HTTP | back to summary |
|---|---|
| public static final String HTTP | |
| HTTP_COLON | back to summary |
|---|---|
| public static final String HTTP_COLON | |
| HTTPS | back to summary |
|---|---|
| public static final String HTTPS | |
| HTTPS_COLON | back to summary |
|---|---|
| public static final String HTTPS_COLON | |
| SLASH | back to summary |
|---|---|
| public static final String SLASH | |
| URIUtil | back to summary |
|---|---|
| private URIUtil() | |
| addPaths | back to summary |
|---|---|
| public static String addPaths(String p1, String p2) Add two URI path segments. Handles null and empty paths, path and query params (eg ?a=b or ;JSESSIONID=xxx) and avoids duplicate '/' | |
| canonicalPath | back to summary |
|---|---|
| public static String canonicalPath(String path) Convert a path to a cananonical form. All instances of "." and ".." are factored out. Null is returned if the path tries to .. above its root.
| |
| compactPath | back to summary |
|---|---|
| public static String compactPath(String path) Convert a path to a compact form. All instances of "//" and "///" etc. are factored out to single "/"
| |
| decodePath | back to summary |
|---|---|
| public static String decodePath(String path) | |
| decodePath | back to summary |
|---|---|
| public static String decodePath(byte[] buf, int offset, int length) | |
| encodePath | back to summary |
|---|---|
| public static String encodePath(String path) Encode a URI path. This is the same encoding offered by URLEncoder, except that the '/' character is not encoded. | |
| encodePath | back to summary |
|---|---|
| public static StringBuilder encodePath(StringBuilder buf, String path) Encode a URI path.
| |
| encodeString | back to summary |
|---|---|
| public static StringBuilder encodeString(StringBuilder buf, String path, String encode) Encode a URI path.
| |
| hasScheme | back to summary |
|---|---|
public static boolean hasScheme(String uri)
| |
| parentPath | back to summary |
|---|---|
| public static String parentPath(String p) Return the parent Path. Treat a URI like a directory path and return the parent directory. | |
| stripPath | back to summary |
|---|---|
| public static String stripPath(String path) Strip parameters from a path. Return path upto any semicolon parameters. | |