| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: true if the given header name is one of the specified connection-related headers.the name of the header to check. The check is case-insensitive. name, boolean true if the TE header should be ignored by this check.
This is relevant for HTTP/2 header validation, where the TE header has special rules.Check if a header name is "connection related". |
| public static boolean | Returns: true only if the header name is TE, and the header value is not
TRAILERS. Otherwise, false.the header name to check if it is TE or not. name, CharSequence the header value to check if it is something other than TRAILERS. value)If the given header is |
| private static int | validateAsciiStringToken(AsciiString
the ascii string to validate. token)Validate that an |
| private static int | validateCharSequenceToken(CharSequence
the character sequence to validate. token)Validate that a |
| public static int | Returns: the index of the first invalid token character found, or-1 if there are none.the token to validate. token)Validate a token contains only allowed characters. |
| public static int | Returns: the index of the first illegal character found, or-1 if there are none and the header value is
valid.the HTTP header value to validate. value)Validate the given HTTP header value by searching for any illegal characters. |
| private static int | |
| private static int |
| TOKEN_CHARS_HIGH | back to summary |
|---|---|
| private static final long TOKEN_CHARS_HIGH | |
| TOKEN_CHARS_LOW | back to summary |
|---|---|
| private static final long TOKEN_CHARS_LOW | |
| HttpHeaderValidationUtil | back to summary |
|---|---|
| private HttpHeaderValidationUtil() | |
| isConnectionHeader | back to summary |
|---|---|
| public static boolean isConnectionHeader(CharSequence name, boolean ignoreTeHeader) Check if a header name is "connection related". The RFC9110 only specify an incomplete list of the following headers:
| |
| isTeNotTrailers | back to summary |
|---|---|
| public static boolean isTeNotTrailers(CharSequence name, CharSequence value) If the given header is The string comparisons are case-insensitive. This check is important for HTTP/2 header validation.
| |
| validateAsciiStringToken | back to summary |
|---|---|
| private static int validateAsciiStringToken(AsciiString token) Validate that an
| |
| validateCharSequenceToken | back to summary |
|---|---|
| private static int validateCharSequenceToken(CharSequence token) Validate that a
| |
| validateToken | back to summary |
|---|---|
| public static int validateToken(CharSequence token) Validate a token contains only allowed characters. The token format is used for variety of HTTP components, like cookie-name, field-name of a header-field, or request method.
| |
| validateValidHeaderValue | back to summary |
|---|---|
| public static int validateValidHeaderValue(CharSequence value) Validate the given HTTP header value by searching for any illegal characters.
| |
| verifyValidHeaderValueAsciiString | back to summary |
|---|---|
| private static int verifyValidHeaderValueAsciiString(AsciiString value) | |
| verifyValidHeaderValueCharSequence | back to summary |
|---|---|
| private static int verifyValidHeaderValueCharSequence(CharSequence value) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv HttpHeaderValidationUtil. | |
| pack-priv static boolean | |
| pack-priv long | |
| pack-priv long | |
| pack-priv HttpHeaderValidationUtil. |
| BitSet128 | back to summary |
|---|---|
| private BitSet128() | |
| bits | back to summary |
|---|---|
| pack-priv HttpHeaderValidationUtil. | |
| contains | back to summary |
|---|---|
| pack-priv static boolean contains(byte bit, long high, long low) | |
| high | back to summary |
|---|---|
| pack-priv long high() | |
| low | back to summary |
|---|---|
| pack-priv long low() | |
| range | back to summary |
|---|---|
| pack-priv HttpHeaderValidationUtil. | |