public final class ServerCookieDecoder
extends java.lang.Object
ServerCookieEncoder
Modifier and Type | Field and Description |
---|---|
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
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<Cookie> |
decode(java.lang.String header)
Decodes the specified Set-Cookie HTTP header value into a
Cookie . |
protected DefaultCookie |
initCookie(java.lang.String header,
int nameBegin,
int nameEnd,
int valueBegin,
int valueEnd) |
public static final ServerCookieDecoder STRICT
public static final ServerCookieDecoder LAX
public java.util.Set<Cookie> decode(java.lang.String header)
Cookie
.header
- the Set-Cookie header.Cookie
protected DefaultCookie initCookie(java.lang.String header, int nameBegin, int nameEnd, int valueBegin, int valueEnd)