Package io.undertow.util
Class Cookies
java.lang.Object
io.undertow.util.Cookies
Class that contains utility methods for dealing with cookies.
- Author:
- Stuart Douglas, Andre Dietisheim, Richard Opalka
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionparseRequestCookies
(int maxCookies, boolean allowEqualInValue, List<String> cookies) Deprecated.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.
-
Field Details
-
DOMAIN
- See Also:
-
VERSION
- See Also:
-
PATH
- See Also:
-
-
Method Details
-
parseSetCookieHeader
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: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
-
parseRequestCookies
@Deprecated public static Map<String,Cookie> parseRequestCookies(int maxCookies, boolean allowEqualInValue, List<String> cookies) Deprecated.useparseRequestCookies(int, boolean, List, Set)
instead/** Parses the cookies from a list of "Cookie:" header values. The cookie header values are parsed according to RFC2109 that defines the following syntax: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
-
parseRequestCookies
-
parseRequestCookies(int, boolean, List, Set)
instead