public class Cookies extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<CharSequence,Set<io.netty.handler.codec.http.cookie.Cookie>> |
cachedCookies |
| Modifier | Constructor and Description |
|---|---|
protected |
Cookies(io.netty.handler.codec.http.HttpHeaders nettyHeaders,
CharSequence cookiesHeaderName,
boolean isClientChannel,
io.netty.handler.codec.http.cookie.CookieDecoder decoder) |
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
allCookieHeaders() |
Map<CharSequence,Set<io.netty.handler.codec.http.cookie.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(io.netty.handler.codec.http.HttpHeaders headers,
io.netty.handler.codec.http.cookie.ClientCookieDecoder decoder)
Return a new cookies holder from client response headers.
|
static Cookies |
newServerRequestHolder(io.netty.handler.codec.http.HttpHeaders headers,
io.netty.handler.codec.http.cookie.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<io.netty.handler.codec.http.cookie.Cookie>> cachedCookies
protected Cookies(io.netty.handler.codec.http.HttpHeaders nettyHeaders,
CharSequence cookiesHeaderName,
boolean isClientChannel,
io.netty.handler.codec.http.cookie.CookieDecoder decoder)
public static Cookies newClientResponseHolder(io.netty.handler.codec.http.HttpHeaders headers, io.netty.handler.codec.http.cookie.ClientCookieDecoder decoder)
headers - client response headers@Deprecated public static Cookies newServerRequestHolder(io.netty.handler.codec.http.HttpHeaders headers, io.netty.handler.codec.http.cookie.ServerCookieDecoder decoder)
ServerCookies.newServerRequestHolder(HttpHeaders, ServerCookieDecoder).
This method will be removed in version 1.2.0.headers - server request headerspublic Map<CharSequence,Set<io.netty.handler.codec.http.cookie.Cookie>> getCachedCookies()
protected final boolean hasReadCookies()
protected final boolean markReadCookies()
protected final boolean markReadingCookies()