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) /** Parses the cookies from a list of "Cookie:" header values. |
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
public static Map<String,Cookie> parseRequestCookies(int maxCookies, boolean allowEqualInValue, List<String> cookies)
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 © 2017 JBoss by Red Hat. All rights reserved.