Class ServerCookieDecoder

java.lang.Object
io.netty.handler.codec.http.cookie.CookieDecoder
io.netty.handler.codec.http.cookie.ServerCookieDecoder

public final class ServerCookieDecoder extends CookieDecoder
A RFC6265 compliant cookie decoder to be used server side. Only name and value fields are expected, so old fields are not populated (path, domain, etc). Old RFC2965 cookies are still supported, old fields will simply be ignored.
See Also:
  • Field Details

  • Constructor Details

    • ServerCookieDecoder

      private ServerCookieDecoder(boolean strict)
  • Method Details

    • decodeAll

      public List<Cookie> decodeAll(String header)
      Decodes the specified Cookie HTTP header value into a Cookie. Unlike decode(String), this includes all cookie values present, even if they have the same name.
      Returns:
      the decoded Cookie
    • decode

      public Set<Cookie> decode(String header)
      Decodes the specified Cookie HTTP header value into a Cookie.
      Returns:
      the decoded Cookie
    • decode

      private void decode(Collection<? super Cookie> cookies, String header)
      Decodes the specified Cookie HTTP header value into a Cookie.