public final class ServerCookieDecoder extends CookieDecoder
ServerCookieEncoder
限定符和类型 | 字段和说明 |
---|---|
static ServerCookieDecoder |
LAX
Lax instance that doesn't validate name and value
|
static ServerCookieDecoder |
STRICT
Strict encoder that validates that name and value chars are in the valid scope
defined in RFC6265
|
限定符和类型 | 方法和说明 |
---|---|
java.util.Set<Cookie> |
decode(java.lang.String header)
Decodes the specified
Cookie HTTP header value into a Cookie . |
java.util.List<Cookie> |
decodeAll(java.lang.String header)
Decodes the specified
Cookie HTTP header value into a Cookie . |
initCookie
public static final ServerCookieDecoder STRICT
public static final ServerCookieDecoder LAX
public java.util.List<Cookie> decodeAll(java.lang.String header)
Cookie
HTTP header value into a Cookie
. Unlike decode(String)
,
this includes all cookie values present, even if they have the same name.Cookie