Class ServerCookies

java.lang.Object
reactor.netty.http.Cookies
reactor.netty.http.server.ServerCookies

public final class ServerCookies extends Cookies
Cookies holder from server request headers.
Since:
1.0.8
Author:
Violeta Georgieva
  • 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

      public Map<CharSequence,Set<Cookie>> 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 class Cookies
      Returns:
      the cached map of cookies
    • getAllCachedCookies

      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:
      the cached map of cookies