| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final boolean | ALLOW_HTTP_SEPARATORS_IN_V0
If true, separators that are not explicitly dis-allowed by the v0 cookie spec but are disallowed by the HTTP spec will be allowed in v0 cookie names and values. |
| pack-priv static final boolean | COMMA_IS_SEPARATOR
If set to true, the <code,< code> character will be treated as a separator in Cookie: headers. |
| private static final boolean | FWD_SLASH_IS_SEPARATOR
If set to true, the |
| private static final boolean[] | |
| private static final char[] | HTTP_SEPARATORS
The list of separators that apply to version 1 cookies. |
| private static final boolean[] | |
| private static final char[] | V0_SEPARATORS
The list of separators that apply to version 0 cookies. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static int | |
| private static boolean | |
| private static String | Returns: The (possibly) escaped stringthe input string s, int start index inclusive beginIndex, int exclusive endIndex)Escapes any double quotes in the given string. |
| pack-priv static boolean | isHttpSeparator(final char c)
Returns true if the byte is a separator as defined by V1 of the cookie spec, RFC2109. |
| private static boolean | |
| private static boolean | isV0Separator(final char c)
Returns true if the byte is a separator as defined by V0 of the cookie spec. |
| private static boolean | |
| public static void |
| ALLOW_HTTP_SEPARATORS_IN_V0 | back to summary |
|---|---|
| pack-priv static final boolean ALLOW_HTTP_SEPARATORS_IN_V0 If true, separators that are not explicitly dis-allowed by the v0 cookie
spec but are disallowed by the HTTP spec will be allowed in v0 cookie
names and values. These characters are: \"()/:<=>?@[\\]{} Note that the
inclusion of / depend on the value of | |
| COMMA_IS_SEPARATOR | back to summary |
|---|---|
| pack-priv static final boolean COMMA_IS_SEPARATOR If set to true, the | |
| FWD_SLASH_IS_SEPARATOR | back to summary |
|---|---|
| private static final boolean FWD_SLASH_IS_SEPARATOR If set to true, the | |
| HTTP_SEPARATOR_FLAGS | back to summary |
|---|---|
| private static final boolean[] HTTP_SEPARATOR_FLAGS | |
| HTTP_SEPARATORS | back to summary |
|---|---|
| private static final char[] HTTP_SEPARATORS The list of separators that apply to version 1 cookies. This may or may
not include '/' depending on the setting of
| |
| V0_SEPARATOR_FLAGS | back to summary |
|---|---|
| private static final boolean[] V0_SEPARATOR_FLAGS | |
| V0_SEPARATORS | back to summary |
|---|---|
| private static final char[] V0_SEPARATORS The list of separators that apply to version 0 cookies. To quote the spec, these are comma, semi-colon and white-space. The HTTP spec definition of linear white space is [CRLF] 1*( SP | HT ) | |
| LegacyCookieSupport | back to summary |
|---|---|
| private LegacyCookieSupport() | |
| adjustedCookieVersion | back to summary |
|---|---|
| public static int adjustedCookieVersion(Cookie cookie) | |
| alreadyQuoted | back to summary |
|---|---|
| private static boolean alreadyQuoted(String value) | |
| escapeDoubleQuotes | back to summary |
|---|---|
| private static String escapeDoubleQuotes(String s, int beginIndex, int endIndex) Escapes any double quotes in the given string. | |
| isHttpSeparator | back to summary |
|---|---|
| pack-priv static boolean isHttpSeparator(final char c) Returns true if the byte is a separator as defined by V1 of the cookie spec, RFC2109.
| |
| isHttpToken | back to summary |
|---|---|
| private static boolean isHttpToken(String value) | |
| isV0Separator | back to summary |
|---|---|
| private static boolean isV0Separator(final char c) Returns true if the byte is a separator as defined by V0 of the cookie spec. | |
| isV0Token | back to summary |
|---|---|
| private static boolean isV0Token(String value) | |
| maybeQuote | back to summary |
|---|---|
| public static void maybeQuote(StringBuilder buf, String value) Quotes values if required. | |