Package reactor.netty.http.server
Class ServerCookies
java.lang.Object
reactor.netty.http.Cookies
reactor.netty.http.server.ServerCookies
Cookies
holder from server request headers.- Since:
- 1.0.8
- Author:
- Violeta Georgieva
-
Field Summary
Fields inherited from class reactor.netty.http.Cookies
cachedCookies
-
Method Summary
Modifier and TypeMethodDescriptionWait for the cookies to become available, cache them and subsequently return the cached map of cookies.Wait for the cookies to become available, cache them and subsequently return the cached map of cookies.static ServerCookies
newServerRequestHolder
(HttpHeaders headers, ServerCookieDecoder decoder) Return a new cookies holder from server request headers.Methods inherited from class reactor.netty.http.Cookies
allCookieHeaders, hasReadCookies, markReadCookies, markReadingCookies, newClientResponseHolder
-
Method Details
-
newServerRequestHolder
public static ServerCookies newServerRequestHolder(HttpHeaders headers, ServerCookieDecoder decoder) Return a new cookies holder from server request headers.- Parameters:
headers
- server request headers- Returns:
- a new cookies holder from server request headers
-
getCachedCookies
Description copied from class:Cookies
Wait for the cookies to become available, cache them and subsequently return the cached map of cookies.- Overrides:
getCachedCookies
in classCookies
- Returns:
- the cached map of cookies
-
getAllCachedCookies
Wait for the cookies to become available, cache them and subsequently return the cached map of cookies. As opposed togetCachedCookies()
, this returns all cookies, even if they have the same name.- Returns:
- the cached map of cookies
-