public class Cookies extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<CharSequence,Set<Cookie>> |
cachedCookies |
Modifier | Constructor and Description |
---|---|
protected |
Cookies(HttpHeaders nettyHeaders,
CharSequence cookiesHeaderName,
boolean isClientChannel,
CookieDecoder decoder) |
Modifier and Type | Method and Description |
---|---|
protected List<String> |
allCookieHeaders() |
Map<CharSequence,Set<Cookie>> |
getCachedCookies()
Wait for the cookies to become available, cache them and subsequently return the cached map of cookies.
|
protected boolean |
hasReadCookies() |
protected boolean |
markReadCookies() |
protected boolean |
markReadingCookies() |
static Cookies |
newClientResponseHolder(HttpHeaders headers,
ClientCookieDecoder decoder)
Return a new cookies holder from client response headers.
|
static Cookies |
newServerRequestHolder(HttpHeaders headers,
ServerCookieDecoder decoder)
Deprecated.
as of 1.0.8.
Prefer
ServerCookies.newServerRequestHolder(HttpHeaders, ServerCookieDecoder) .
This method will be removed in version 1.2.0. |
protected Map<CharSequence,Set<Cookie>> cachedCookies
protected Cookies(HttpHeaders nettyHeaders, CharSequence cookiesHeaderName, boolean isClientChannel, CookieDecoder decoder)
public static Cookies newClientResponseHolder(HttpHeaders headers, ClientCookieDecoder decoder)
headers
- client response headers@Deprecated public static Cookies newServerRequestHolder(HttpHeaders headers, ServerCookieDecoder decoder)
ServerCookies.newServerRequestHolder(HttpHeaders, ServerCookieDecoder)
.
This method will be removed in version 1.2.0.headers
- server request headerspublic Map<CharSequence,Set<Cookie>> getCachedCookies()
protected final boolean hasReadCookies()
protected final boolean markReadCookies()
protected final boolean markReadingCookies()