Class CookieDecoder


  • @Deprecated
    public final class CookieDecoder
    extends java.lang.Object
    Deprecated.
    Use io.netty.handler.codec.http.cookie.ClientCookieDecoder or io.netty.handler.codec.http.cookie.ServerCookieDecoder instead. Decodes an HTTP header value into Cookies. This decoder can decode the HTTP cookie version 0, 1, and 2.
     HttpRequest req = ...;
     String value = req.getHeader("Cookie");
     Set<Cookie> cookies = CookieDecoder.decode(value);
     
    See Also:
    io.netty.handler.codec.http.cookie.ClientCookieDecoder, io.netty.handler.codec.http.cookie.ServerCookieDecoder
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static char COMMA
      Deprecated.
       
      private static java.lang.String COMMENT
      Deprecated.
       
      private static java.lang.String COMMENTURL
      Deprecated.
       
      private static java.lang.String DISCARD
      Deprecated.
       
      private InternalLogger logger
      Deprecated.
       
      private static java.lang.String PORT
      Deprecated.
       
      private boolean strict
      Deprecated.
       
      private static java.lang.String VERSION
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      CookieDecoder()
      Deprecated.
      Creates a new decoder.
      CookieDecoder​(boolean strict)
      Deprecated.
      Creates a new decoder.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.util.Set<Cookie> decode​(java.lang.String header)
      Deprecated.
      Decodes the specified HTTP header value into Cookies.
      private static void extractKeyValuePairs​(java.lang.String header, java.util.List<java.lang.String> names, java.util.List<java.lang.String> values)
      Deprecated.
       
      private DefaultCookie initCookie​(java.lang.String name, java.lang.String value)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CookieDecoder

        public CookieDecoder()
        Deprecated.
        Creates a new decoder.
      • CookieDecoder

        public CookieDecoder​(boolean strict)
        Deprecated.
        Creates a new decoder.
        Parameters:
        strict - true if and only if this encoder is supposed to validate characters according to RFC6265.
    • Method Detail

      • decode

        public java.util.Set<Cookie> decode​(java.lang.String header)
        Deprecated.
        Decodes the specified HTTP header value into Cookies.
        Returns:
        the decoded Cookies
      • extractKeyValuePairs

        private static void extractKeyValuePairs​(java.lang.String header,
                                                 java.util.List<java.lang.String> names,
                                                 java.util.List<java.lang.String> values)
        Deprecated.
      • initCookie

        private DefaultCookie initCookie​(java.lang.String name,
                                         java.lang.String value)
        Deprecated.