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

public final Class ServerCookies

extends Cookies<HttpCookiePair>
Class Inheritance
Imports
io.netty5.handler.codec.http.headers.HttpCookiePair, .HttpHeaders, reactor.netty5.http.Cookies, java.util.ArrayList, .Collections, .HashMap, .HashSet, .List, .Map, .Objects, .Set

Holder for Cookie headers found in request headers
Author
Violeta Georgieva
Since
1.0.8

Field Summary

Modifier and TypeField and Description
pack-priv Map<CharSequence, List<HttpCookiePair>>
pack-priv Map<CharSequence, Set<HttpCookiePair>>
pack-priv final HttpHeaders

Constructor Summary

AccessConstructor and Description
pack-priv
ServerCookies(HttpHeaders nettyHeaders)

Method Summary

Modifier and TypeMethod and Description
public Map<CharSequence, List<HttpCookiePair>>

Returns:

the cached map of cookies
getAllCachedCookies
()

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

public Map<CharSequence, Set<HttpCookiePair>>
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 ServerCookies

Returns:

a new cookies holder from server request headers
newServerRequestHolder
(HttpHeaders
server request headers
headers
)

Return a new cookies holder from server request headers.

Inherited from reactor.netty5.http.Cookies:
hasReadCookiesmarkReadCookiesmarkReadingCookies

Field Detail

allCachedCookiesback to summary
pack-priv Map<CharSequence, List<HttpCookiePair>> allCachedCookies
cachedCookiesback to summary
pack-priv Map<CharSequence, Set<HttpCookiePair>> cachedCookies
nettyHeadersback to summary
pack-priv final HttpHeaders nettyHeaders

Constructor Detail

ServerCookiesback to summary
pack-priv ServerCookies(HttpHeaders nettyHeaders)

Method Detail

getAllCachedCookiesback to summary
public Map<CharSequence, List<HttpCookiePair>> getAllCachedCookies()

Wait for the cookies to become available, cache them and subsequently return the cached map of cookies. As opposed to getCachedCookies(), this returns all cookies, even if they have the same name.

Returns:Map<CharSequence, List<HttpCookiePair>>

the cached map of cookies

getCachedCookiesback to summary
public Map<CharSequence, Set<HttpCookiePair>> 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<HttpCookiePair>>

the cached map of cookies

Annotations
@Override
newServerRequestHolderback to summary
public static ServerCookies newServerRequestHolder(HttpHeaders headers)

Return a new cookies holder from server request headers.

Parameters
headers:HttpHeaders

server request headers

Returns:ServerCookies

a new cookies holder from server request headers