public class Cookies extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DOMAIN |
static String |
PATH |
static String |
VERSION |
Modifier and Type | Method and Description |
---|---|
static Map<String,Cookie> |
parseRequestCookies(int maxCookies,
boolean allowEqualInValue,
List<String> cookies)
Deprecated.
use
parseRequestCookies(int, boolean, List, Set) instead |
static void |
parseRequestCookies(int maxCookies,
boolean allowEqualInValue,
List<String> cookies,
Set<Cookie> parsedCookies) |
static Cookie |
parseSetCookieHeader(String headerValue)
Parses a "Set-Cookie:" response header value into its cookie representation.
|
public static final String DOMAIN
public static final String VERSION
public static final String PATH
public static Cookie parseSetCookieHeader(String headerValue)
set-cookie = "Set-Cookie:" cookies
cookies = 1#cookie
cookie = NAME "=" VALUE *(";" cookie-av)
NAME = attr
VALUE = value
cookie-av = "Comment" "=" value
| "Domain" "=" value
| "Max-Age" "=" value
| "Path" "=" value
| "Secure"
| "Version" "=" 1*DIGIT
@Deprecated public static Map<String,Cookie> parseRequestCookies(int maxCookies, boolean allowEqualInValue, List<String> cookies)
parseRequestCookies(int, boolean, List, Set)
instead
cookie = "Cookie:" cookie-version
1*((";" | ",") cookie-value)
cookie-value = NAME "=" VALUE [";" path] [";" domain]
cookie-version = "$Version" "=" value
NAME = attr
VALUE = value
path = "$Path" "=" value
domain = "$Domain" "=" value
Copyright © 2021 JBoss by Red Hat. All rights reserved.