public final class Cookies extends Object
Modifier and Type | Method and Description |
---|---|
Map<CharSequence,Set<Cookie>> |
getCachedCookies()
Wait for the cookies to become available, cache them and subsequently return the
cached map of cookies.
|
static Cookies |
newClientResponseHolder(HttpHeaders headers,
ClientCookieDecoder decoder)
Return a new cookies holder from client response headers
|
static Cookies |
newServerRequestHolder(HttpHeaders headers,
ServerCookieDecoder decoder)
Return a new cookies holder from server request headers
|
public static Cookies newClientResponseHolder(HttpHeaders headers, ClientCookieDecoder decoder)
headers
- client response headerspublic static Cookies newServerRequestHolder(HttpHeaders headers, ServerCookieDecoder decoder)
headers
- server request headerspublic Map<CharSequence,Set<Cookie>> getCachedCookies()