| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| private static final Boolean | |
| 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 void | assembleCrumbs(final HeaderMap headerMap)
Cookie headers form: https://www.rfc-editor.org/rfc/rfc6265#section-4.2.1 If more than one header entry exist for "Cookie", it will be assembled into one that conforms to rfc. |
| private static int | |
| public static void | disperseCrumbs(final HeaderMap headerMap)
IF there is single entry that follows RFC separation rules, it will be turned into singular fields. |
| public static List | |
| private static void | |
| public static boolean | |
| private static void | parseCookie(final String cookie, final Set<Cookie> parsedCookies, int maxCookies, boolean allowEqualInValue, boolean commaIsSeperator, boolean allowHttpSepartorsV0)
|
| public static Map | Returns: A pared cookie mapThe maximum number of cookies. Used to prevent hash collision attacks maxCookies, boolean if true equal characters are allowed in cookie values allowEqualInValue, List<String> The cookie values to parse cookies)
Deprecated
for removal since 2.2.0. use
parseRequestCookies(int, boolean, List, Set) instead
/** Parses the cookies from a list of "Cookie:" header values. |
| public static void | parseRequestCookies(int maxCookies, boolean allowEqualInValue, List<String> cookies, Set<Cookie> parsedCookies)
|
| pack-priv static Map | parseRequestCookies(int maxCookies, boolean allowEqualInValue, List<String> cookies, boolean commaIsSeperator)
Deprecated
|
| pack-priv static void | parseRequestCookies(int maxCookies, boolean allowEqualInValue, List<String> cookies, Set<Cookie> parsedCookies, boolean commaIsSeperator)
|
| pack-priv static Map | parseRequestCookies(int maxCookies, boolean allowEqualInValue, List<String> cookies, boolean commaIsSeperator, boolean allowHttpSepartorsV0)
|
| pack-priv static void | parseRequestCookies(int maxCookies, boolean allowEqualInValue, List<String> cookies, Set<Cookie> parsedCookies, boolean commaIsSeperator, boolean allowHttpSepartorsV0)
|
| public static Cookie | Returns: The cookieThe header value headerValue)Parses a "Set-Cookie:" response header value into its cookie representation. |
| private static String |
| CRUMB_SEPARATOR | back to summary |
|---|---|
| private static final String CRUMB_SEPARATOR | |
| CRUMBS_ASSEMBLY_DISABLE | back to summary |
|---|---|
| private static final String CRUMBS_ASSEMBLY_DISABLE | |
| CRUMBS_ASSEMBLY_DISABLED | back to summary |
|---|---|
| private static final Boolean CRUMBS_ASSEMBLY_DISABLED | |
| DOMAIN | back to summary |
|---|---|
| public static final String DOMAIN | |
| PATH | back to summary |
|---|---|
| public static final String PATH | |
| VERSION | back to summary |
|---|---|
| public static final String VERSION | |
| Cookies | back to summary |
|---|---|
| private Cookies() | |
| assembleCrumbs | back to summary |
|---|---|
| public static void assembleCrumbs(final HeaderMap headerMap) Cookie headers form: https://www.rfc-editor.org/rfc/rfc6265#section-4.2.1 If more than one header entry exist for "Cookie", it will be assembled into one that conforms to rfc. | |
| createCookie | back to summary |
|---|---|
| private static int createCookie(final String name, final String value, int maxCookies, int cookieCount, final Map<String, String> cookies, final Map<String, String> additional) | |
| disperseCrumbs | back to summary |
|---|---|
| public static void disperseCrumbs(final HeaderMap headerMap) IF there is single entry that follows RFC separation rules, it will be turned into singular fields. This should be only used PRIOR to compression. | |
| getCrumbs | back to summary |
|---|---|
| public static List Fetch list containing crumbs( singular entries of Cookie header ) | |
| handleValue | back to summary |
|---|---|
| private static void handleValue(CookieImpl cookie, String key, String value) | |
| isCrumbsAssemplyDisabled | back to summary |
|---|---|
| public static boolean isCrumbsAssemplyDisabled() | |
| parseCookie | back to summary |
|---|---|
| private static void parseCookie(final String cookie, final Set<Cookie> parsedCookies, int maxCookies, boolean allowEqualInValue, boolean commaIsSeperator, boolean allowHttpSepartorsV0) | |
| parseRequestCookies | back to summary |
|---|---|
| public static Map /** Parses the cookies from a list of "Cookie:" header values. The cookie header values are parsed according to RFC2109 that defines the following syntax:
| |
| parseRequestCookies | back to summary |
|---|---|
| public static void parseRequestCookies(int maxCookies, boolean allowEqualInValue, List<String> cookies, Set<Cookie> parsedCookies) | |
| parseRequestCookies | back to summary |
|---|---|
| pack-priv static Map Deprecated
| |
| parseRequestCookies | back to summary |
|---|---|
| pack-priv static void parseRequestCookies(int maxCookies, boolean allowEqualInValue, List<String> cookies, Set<Cookie> parsedCookies, boolean commaIsSeperator) | |
| parseRequestCookies | back to summary |
|---|---|
| pack-priv static Map | |
| parseRequestCookies | back to summary |
|---|---|
| pack-priv static void parseRequestCookies(int maxCookies, boolean allowEqualInValue, List<String> cookies, Set<Cookie> parsedCookies, boolean commaIsSeperator, boolean allowHttpSepartorsV0) | |
| parseSetCookieHeader | back to summary |
|---|---|
| public static Cookie parseSetCookieHeader(final String headerValue) Parses a "Set-Cookie:" response header value into its cookie representation. The header value is parsed according to the syntax that's defined in RFC2109:
| |
| unescapeDoubleQuotes | back to summary |
|---|---|
| private static String unescapeDoubleQuotes(final String value) | |