public final class ClientCookieDecoder
extends java.lang.Object
It will store the way the raw value was wrapped in Cookie.setWrap(boolean)
so it can
be eventually sent back to the Origin server as is.
ClientCookieEncoder
Modifier and Type | Field and Description |
---|---|
static ClientCookieDecoder |
LAX
Lax instance that doesn't validate name and value
|
static ClientCookieDecoder |
STRICT
Strict encoder that validates that name and value chars are in the valid scope defined in
RFC6265
|
Modifier and Type | Method and Description |
---|---|
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 ClientCookieDecoder STRICT
public static final ClientCookieDecoder LAX
public 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)