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

public final Class ServerCookies

extends Cookies
Class Inheritance
Imports
io.netty.handler.codec.http.HttpHeaderNames, .HttpHeaders, io.netty.handler.codec.http.cookie.Cookie, .ServerCookieDecoder, reactor.netty.http.Cookies, java.util.ArrayList, .Collections, .HashMap, .HashSet, .List, .Map, .Set

Cookies holder from server request headers.
Author
Violeta Georgieva
Since
1.0.8

Field Summary

Modifier and TypeField and Description
pack-priv Map<CharSequence, List<Cookie>>
pack-priv final ServerCookieDecoder
Inherited from reactor.netty.http.Cookies:
cachedCookies

Constructor Summary

AccessConstructor and Description
pack-priv
ServerCookies(HttpHeaders nettyHeaders, CharSequence cookiesHeaderName, boolean isClientChannel, ServerCookieDecoder decoder)

Method Summary

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

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<Cookie>>
getCachedCookies()

Overrides reactor.netty.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
,
ServerCookieDecoder decoder)

Hides reactor.netty.http.Cookies.newServerRequestHolder.

Return a new cookies holder from server request headers.
Inherited from reactor.netty.http.Cookies:
allCookieHeadershasReadCookiesmarkReadCookiesmarkReadingCookiesnewClientResponseHolder

Field Detail

allCachedCookiesback to summary
pack-priv Map<CharSequence, List<Cookie>> allCachedCookies
serverCookieDecoderback to summary
pack-priv final ServerCookieDecoder serverCookieDecoder

Constructor Detail

ServerCookiesback to summary
pack-priv ServerCookies(HttpHeaders nettyHeaders, CharSequence cookiesHeaderName, boolean isClientChannel, ServerCookieDecoder decoder)

Method Detail

getAllCachedCookiesback to summary
public Map<CharSequence, List<Cookie>> 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<Cookie>>

the cached map of cookies

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

Overrides reactor.netty.http.Cookies.getCachedCookies.

Doc from reactor.netty.http.Cookies.getCachedCookies.

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

Returns:Map<CharSequence, Set<Cookie>>

the cached map of cookies

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

Hides reactor.netty.http.Cookies.newServerRequestHolder.

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