| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final HttpParser | |
| private final boolean[] | |
| private static final boolean[] | |
| private static final boolean[] | |
| private static final boolean[] | |
| private static final boolean[] | |
| private final boolean[] | |
| private static final boolean[] | |
| private final boolean[] | |
| private static final boolean[] | |
| private static final boolean[] | |
| private static final boolean[] | |
| private static final boolean[] | |
| private static final boolean[] | |
| private static final boolean[] | |
| private static final boolean[] | |
| private static final StringManager |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | |
| public boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public boolean | |
| public static boolean | |
| public static boolean | |
| public boolean | |
| private static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| pack-priv static String | Returns: the digits if any were found, the empty string if no data was found or if data other than digits was found
|
| pack-priv static int | Returns: The position of ':' that separates the host from the port or -1 if it is not present
|
| pack-priv static int | Returns: If inIPv6 is false, the position of ':' that separates the host from the port or -1 if it is not present. If inIPv6 is true, the number of characters read
|
| pack-priv static int | Returns: The position of ':' that separates the host from the port or -1 if it is not present
|
| pack-priv static String | |
| pack-priv static long | |
| pack-priv static String | Returns: the quoted string if one was found, null if data other than a quoted string was found or null if the end of data was reached before the quoted string was terminated
|
| pack-priv static String | Returns: the token if one was found, null if data other than a token or quoted token was found or null if the end of data was reached before a quoted token was terminatedToken can be read unambiguously with or without surrounding quotes so this parsing method for token permits optional surrounding double quotes. |
| pack-priv static String | |
| pack-priv static String | |
| pack-priv static double | |
| private void | |
| pack-priv static SkipResult | |
| pack-priv static int | |
| pack-priv static SkipResult | |
| public static String | |
| pack-priv static int |
| ARRAY_SIZE | back to summary |
|---|---|
| private static final int ARRAY_SIZE | |
| DEFAULT | back to summary |
|---|---|
| private static final HttpParser DEFAULT | |
| IS_ABSOLUTEPATH_RELAXED | back to summary |
|---|---|
| private final boolean[] IS_ABSOLUTEPATH_RELAXED | |
| IS_ALPHA | back to summary |
|---|---|
| private static final boolean[] IS_ALPHA | |
| IS_CONTROL | back to summary |
|---|---|
| private static final boolean[] IS_CONTROL | |
| IS_HEX | back to summary |
|---|---|
| private static final boolean[] IS_HEX | |
| IS_HTTP_PROTOCOL | back to summary |
|---|---|
| private static final boolean[] IS_HTTP_PROTOCOL | |
| IS_NOT_REQUEST_TARGET | back to summary |
|---|---|
| private final boolean[] IS_NOT_REQUEST_TARGET | |
| IS_NUMERIC | back to summary |
|---|---|
| private static final boolean[] IS_NUMERIC | |
| IS_QUERY_RELAXED | back to summary |
|---|---|
| private final boolean[] IS_QUERY_RELAXED | |
| IS_RELAXABLE | back to summary |
|---|---|
| private static final boolean[] IS_RELAXABLE | |
| IS_SCHEME | back to summary |
|---|---|
| private static final boolean[] IS_SCHEME | |
| IS_SEPARATOR | back to summary |
|---|---|
| private static final boolean[] IS_SEPARATOR | |
| IS_SUBDELIM | back to summary |
|---|---|
| private static final boolean[] IS_SUBDELIM | |
| IS_TOKEN | back to summary |
|---|---|
| private static final boolean[] IS_TOKEN | |
| IS_UNRESERVED | back to summary |
|---|---|
| private static final boolean[] IS_UNRESERVED | |
| IS_USERINFO | back to summary |
|---|---|
| private static final boolean[] IS_USERINFO | |
| sm | back to summary |
|---|---|
| private static final StringManager sm | |
| HttpParser | back to summary |
|---|---|
| public HttpParser(String relaxedPathChars, String relaxedQueryChars) | |
| isAbsolutePath | back to summary |
|---|---|
| public static boolean isAbsolutePath(int c) | |
| isAbsolutePathRelaxed | back to summary |
|---|---|
| public boolean isAbsolutePathRelaxed(int c) | |
| isAlpha | back to summary |
|---|---|
| public static boolean isAlpha(int c) | |
| isControl | back to summary |
|---|---|
| public static boolean isControl(int c) | |
| isHex | back to summary |
|---|---|
| public static boolean isHex(int c) | |
| isHttpProtocol | back to summary |
|---|---|
| public static boolean isHttpProtocol(int c) | |
| isNotRequestTarget | back to summary |
|---|---|
| public static boolean isNotRequestTarget(int c) | |
| isNotRequestTargetRelaxed | back to summary |
|---|---|
| public boolean isNotRequestTargetRelaxed(int c) | |
| isNumeric | back to summary |
|---|---|
| public static boolean isNumeric(int c) | |
| isQuery | back to summary |
|---|---|
| public static boolean isQuery(int c) | |
| isQueryRelaxed | back to summary |
|---|---|
| public boolean isQueryRelaxed(int c) | |
| isRelaxable | back to summary |
|---|---|
| private static boolean isRelaxable(int c) | |
| isScheme | back to summary |
|---|---|
| public static boolean isScheme(int c) | |
| isScheme | back to summary |
|---|---|
| public static boolean isScheme(String s) Is the provided String a scheme as per RFC 3986?
| |
| isToken | back to summary |
|---|---|
| public static boolean isToken(int c) | |
| isToken | back to summary |
|---|---|
| public static boolean isToken(String s) Is the provided String a token as per RFC 7230?
| |
| isUserInfo | back to summary |
|---|---|
| public static boolean isUserInfo(int c) | |
| readDigits | back to summary |
|---|---|
pack-priv static String readDigits(Reader input) throws IOException
| |
| readHostDomainName | back to summary |
|---|---|
pack-priv static int readHostDomainName(Reader reader) throws IOException
| |
| readHostIPv4 | back to summary |
|---|---|
pack-priv static int readHostIPv4(Reader reader, boolean inIPv6) throws IOException
| |
| readHostIPv6 | back to summary |
|---|---|
pack-priv static int readHostIPv6(Reader reader) throws IOException
| |
| readLhex | back to summary |
|---|---|
| pack-priv static String readLhex(Reader input) throws IOException LHEX can be read unambiguously with or without surrounding quotes so this parsing method for LHEX permits optional surrounding double quotes. Some buggy clients (libwww-perl for DIGEST auth) are known to send quoted LHEX when the specification requires just LHEX. LHEX are, literally, lower-case hexadecimal digits. This implementation allows for upper-case digits as well, converting the returned value to lower-case.
| |
| readLong | back to summary |
|---|---|
pack-priv static long readLong(Reader input) throws IOException
| |
| readQuotedString | back to summary |
|---|---|
pack-priv static String readQuotedString(Reader input, boolean returnQuoted) throws IOException
| |
| readQuotedToken | back to summary |
|---|---|
| pack-priv static String readQuotedToken(Reader input) throws IOException Token can be read unambiguously with or without surrounding quotes so this parsing method for token permits optional surrounding double quotes. This is not defined in any RFC. It is a special case to handle data from buggy clients (known buggy clients for DIGEST auth include Microsoft IE 8 & 9, Apple Safari for OSX and iOS) that add quotes to values that should be tokens.
| |
| readToken | back to summary |
|---|---|
pack-priv static String readToken(Reader input) throws IOException
| |
| readTokenOrQuotedString | back to summary |
|---|---|
| pack-priv static String readTokenOrQuotedString(Reader input, boolean returnQuoted) throws IOException | |
| readWeight | back to summary |
|---|---|
| pack-priv static double readWeight(Reader input, char delimiter) throws IOException | |
| relax | back to summary |
|---|---|
| private void relax(boolean[] flags, String relaxedChars) | |
| skipConstant | back to summary |
|---|---|
| pack-priv static SkipResult skipConstant(Reader input, String constant) throws IOException | |
| skipLws | back to summary |
|---|---|
| pack-priv static int skipLws(Reader input) throws IOException | |
| skipUntil | back to summary |
|---|---|
| pack-priv static SkipResult skipUntil(Reader input, int c, char target) throws IOException Skips all characters until EOF or the specified target is found. Normally used to skip invalid input until the next separator. | |
| unquote | back to summary |
|---|---|
| public static String unquote(String input) | |
| validatePort | back to summary |
|---|---|
| pack-priv static int validatePort(Reader reader, int colonPosition) throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final boolean | |
| private final boolean | |
| public static final HttpParser. | |
| public static final HttpParser. | |
| public static final HttpParser. | |
| private final String | |
| public static final HttpParser. | |
| private final boolean | |
| public static final HttpParser. | |
| public static final HttpParser. | |
| public static final HttpParser. |
| Access | Constructor and Description |
|---|---|
| private | DomainParseState(boolean mayContinue, boolean allowsHyphen, boolean allowsPeriod, boolean allowsEnd, String errorMsg)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public HttpParser. | |
| public static HttpParser. | |
| public static HttpParser. |
| allowsEnd | back to summary |
|---|---|
| private final boolean allowsEnd | |
| allowsHyphen | back to summary |
|---|---|
| private final boolean allowsHyphen | |
| allowsPeriod | back to summary |
|---|---|
| private final boolean allowsPeriod | |
| ALPHA | back to summary |
|---|---|
| public static final HttpParser. | |
| COLON | back to summary |
|---|---|
| public static final HttpParser. | |
| END | back to summary |
|---|---|
| public static final HttpParser. | |
| errorMsg | back to summary |
|---|---|
| private final String errorMsg | |
| HYPHEN | back to summary |
|---|---|
| public static final HttpParser. | |
| mayContinue | back to summary |
|---|---|
| private final boolean mayContinue | |
| NEW | back to summary |
|---|---|
| public static final HttpParser. | |
| NUMERIC | back to summary |
|---|---|
| public static final HttpParser. | |
| PERIOD | back to summary |
|---|---|
| public static final HttpParser. | |
| DomainParseState | back to summary |
|---|---|
| private DomainParseState(boolean mayContinue, boolean allowsHyphen, boolean allowsPeriod, boolean allowsEnd, String errorMsg) | |
| mayContinue | back to summary |
|---|---|
| public boolean mayContinue() | |
| next | back to summary |
|---|---|
| public HttpParser. | |
| valueOf | back to summary |
|---|---|
| public static HttpParser. | |
| values | back to summary |
|---|---|
| public static HttpParser. | |