| Modifier and Type | Class and Description |
|---|---|
| private abstract static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final URLUtils. | |
| private static final char | |
| private static final URLUtils. | |
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static String | Returns: The decoded URLThe string to decode s, String The encoding enc, boolean If slash characters should be decoded decodeSlash, StringBuilder The string builder to use as a buffer. buffer)Decodes a URL. |
| public static String | Returns: The decoded URLThe string to decode s, String The encoding enc, boolean If slash characters should be decoded decodeSlash, boolean formEncoding, StringBuilder The string builder to use as a buffer. buffer)Decodes a URL. |
| private static byte[] | |
| public static boolean | |
| public static boolean | |
| public static boolean | Returns: true if location is considered absolutelocation to check, null = relative, having scheme = absolute location)Test if provided location is an absolute URI or not. |
| public static String | Returns: a normalized (with respect to slashes) resultthe path to normalize path)Adds a '/' prefix to the beginning of a path if one isn't present and removes trailing slashes if any are present. |
| public static int | parsePathParams(final String string, final HttpServerExchange exchange, final String charset, final boolean doDecode, int maxParameters)
|
| public static void | parsePathParms(final String string, final HttpServerExchange exchange, final String charset, final boolean doDecode, int maxParameters)
Deprecated
|
| public static void | parseQueryString(final String string, final HttpServerExchange exchange, final String charset, final boolean doDecode, int maxParameters)
|
| PATH_PARAM_PARSER | back to summary |
|---|---|
| private static final URLUtils. | |
| PATH_SEPARATOR | back to summary |
|---|---|
| private static final char PATH_SEPARATOR | |
| QUERY_STRING_PARSER | back to summary |
|---|---|
| private static final URLUtils. | |
| SCHEME_PATTERN | back to summary |
|---|---|
| private static final Pattern SCHEME_PATTERN | |
| URLUtils | back to summary |
|---|---|
| private URLUtils() | |
| decode | back to summary |
|---|---|
| public static String decode(String s, String enc, boolean decodeSlash, StringBuilder buffer) Decodes a URL. If the decoding fails for any reason then an IllegalArgumentException will be thrown.
| |
| decode | back to summary |
|---|---|
| public static String decode(String s, String enc, boolean decodeSlash, boolean formEncoding, StringBuilder buffer) Decodes a URL. If the decoding fails for any reason then an IllegalArgumentException will be thrown.
| |
| expandBytes | back to summary |
|---|---|
| private static byte[] expandBytes(byte[] bytes) | |
| getSlashDecodingFlag | back to summary |
|---|---|
| public static boolean getSlashDecodingFlag(final OptionMap options) | |
| getSlashDecodingFlag | back to summary |
|---|---|
| public static boolean getSlashDecodingFlag(final boolean allowEncodedSlash, final Boolean decodeSlash) | |
| isAbsoluteUrl | back to summary |
|---|---|
| public static boolean isAbsoluteUrl(String location) Test if provided location is an absolute URI or not.
| |
| normalizeSlashes | back to summary |
|---|---|
| public static String normalizeSlashes(final String path) Adds a '/' prefix to the beginning of a path if one isn't present and removes trailing slashes if any are present. | |
| parsePathParams | back to summary |
|---|---|
| public static int parsePathParams(final String string, final HttpServerExchange exchange, final String charset, final boolean doDecode, int maxParameters) throws ParameterLimitException | |
| parsePathParms | back to summary |
|---|---|
| public static void parsePathParms(final String string, final HttpServerExchange exchange, final String charset, final boolean doDecode, int maxParameters) throws ParameterLimitException
Deprecated
| |
| parseQueryString | back to summary |
|---|---|
| public static void parseQueryString(final String string, final HttpServerExchange exchange, final String charset, final boolean doDecode, int maxParameters) throws ParameterLimitException | |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final char |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| pack-priv abstract void | |
| pack-priv int | parse(final String string, final HttpServerExchange exchange, final String charset, final boolean doDecode, int max)
|
| parseUntilSeparator | back to summary |
|---|---|
| private final boolean parseUntilSeparator | |
| separator | back to summary |
|---|---|
| private final char separator | |
| QueryStringParser | back to summary |
|---|---|
| pack-priv QueryStringParser(final char separator, final boolean parseUntilSeparator) | |
| decode | back to summary |
|---|---|
| private String decode(String charset, String attrName, final boolean doDecode) throws UnsupportedEncodingException | |
| handle | back to summary |
|---|---|
| pack-priv abstract void handle(final HttpServerExchange exchange, final String key, final String value) | |
| parse | back to summary |
|---|---|
| pack-priv int parse(final String string, final HttpServerExchange exchange, final String charset, final boolean doDecode, int max) throws ParameterLimitException | |