public static final class CookieUtil.ServerCookieDecoder extends Object
Modifier and Type | Field and Description |
---|---|
static CookieUtil.ServerCookieDecoder |
LAX
Lax instance that doesn't validate name and value
|
static CookieUtil.ServerCookieDecoder |
STRICT
Strict encoder that validates that name and value chars are in the valid scope
defined in RFC6265
|
Modifier and Type | Method and Description |
---|---|
Set<javax.servlet.http.Cookie> |
decode(String header)
Decodes the specified Set-Cookie HTTP header value into a
Cookie . |
void |
decode(String header,
Set<javax.servlet.http.Cookie> cookies)
Decodes the specified Set-Cookie HTTP header value into a
Cookie . |
protected javax.servlet.http.Cookie |
initCookie(String header,
int nameBegin,
int nameEnd,
int valueBegin,
int valueEnd) |
public static final CookieUtil.ServerCookieDecoder STRICT
public static final CookieUtil.ServerCookieDecoder LAX
public Set<javax.servlet.http.Cookie> decode(String header)
Cookie
.header
- the cookie headerCookie
public void decode(String header, Set<javax.servlet.http.Cookie> cookies)
Cookie
.header
- the cookie headercookies
- the cookies to be filledprotected javax.servlet.http.Cookie initCookie(String header, int nameBegin, int nameEnd, int valueBegin, int valueEnd)
Copyright © 2016. All rights reserved.