Class ClientCookieDecoder

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

public final class ClientCookieDecoder extends CookieDecoder
A RFC6265 compliant cookie decoder to be used client side. It will store the way the raw value was wrapped in Cookie.setWrap(boolean) so it can be eventually sent back to the Origin server as is.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ClientCookieDecoder
    Lax instance that doesn't validate name and value
    static final ClientCookieDecoder
    Strict encoder that validates that name and value chars are in the valid scope defined in RFC6265
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    ClientCookieDecoder(boolean strict)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    decode(java.lang.String header)
    Decodes the specified Set-Cookie HTTP header value into a Cookie.

    Methods inherited from class CookieDecoder

    initCookie

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • STRICT

      public static final ClientCookieDecoder STRICT
      Strict encoder that validates that name and value chars are in the valid scope defined in RFC6265
    • LAX

      public static final ClientCookieDecoder LAX
      Lax instance that doesn't validate name and value
  • Constructor Details

    • ClientCookieDecoder

      private ClientCookieDecoder(boolean strict)
  • Method Details

    • decode

      public Cookie decode(java.lang.String header)
      Decodes the specified Set-Cookie HTTP header value into a Cookie.
      Returns:
      the decoded Cookie