Top Description Fields Constructors Methods
reactor.netty5.http.client

public final Class ClientCookies

extends Cookies<HttpSetCookie>
Class Inheritance
Imports
io.netty5.handler.codec.http.headers.HttpHeaders, .HttpSetCookie, reactor.netty5.http.Cookies, reactor.util.Logger, .Loggers, java.util.Collections, .HashMap, .HashSet, .Iterator, .Map, .Objects, .Set

Holder for Set-Cookie headers found in response headers
Author
Violeta Georgieva
Since
2.0.0

Field Summary

Modifier and TypeField and Description
pack-priv Map<CharSequence, Set<HttpSetCookie>>
pack-priv static final Logger
pack-priv final HttpHeaders

Constructor Summary

AccessConstructor and Description
pack-priv
ClientCookies(HttpHeaders nettyHeaders)

Method Summary

Modifier and TypeMethod and Description
public Map<CharSequence, Set<HttpSetCookie>>
getCachedCookies()

Implements abstract reactor.netty5.http.Cookies.getCachedCookies.

Wait for the cookies to become available, cache them and subsequently return the cached map of cookies.
public static ClientCookies

Returns:

a new cookies holder from client response headers
newClientResponseHolder
(HttpHeaders
client response headers
headers
)

Return a new cookies holder from client response headers.

Inherited from reactor.netty5.http.Cookies:
hasReadCookiesmarkReadCookiesmarkReadingCookies

Field Detail

cachedCookiesback to summary
pack-priv Map<CharSequence, Set<HttpSetCookie>> cachedCookies
logback to summary
pack-priv static final Logger log
nettyHeadersback to summary
pack-priv final HttpHeaders nettyHeaders

Constructor Detail

ClientCookiesback to summary
pack-priv ClientCookies(HttpHeaders nettyHeaders)

Method Detail

getCachedCookiesback to summary
public Map<CharSequence, Set<HttpSetCookie>> getCachedCookies()

Implements abstract reactor.netty5.http.Cookies.getCachedCookies.

Doc from reactor.netty5.http.Cookies.getCachedCookies.

Wait for the cookies to become available, cache them and subsequently return the cached map of cookies.

Returns:Map<CharSequence, Set<HttpSetCookie>>

the cached map of cookies

Annotations
@Override
newClientResponseHolderback to summary
public static ClientCookies newClientResponseHolder(HttpHeaders headers)

Return a new cookies holder from client response headers.

Parameters
headers:HttpHeaders

client response headers

Returns:ClientCookies

a new cookies holder from client response headers