Package io.netty.handler.codec.http
Class CookieDecoder
- java.lang.Object
-
- io.netty.handler.codec.http.CookieDecoder
-
@Deprecated public final class CookieDecoder extends java.lang.ObjectDeprecated.UseClientCookieDecoderorServerCookieDecoderinstead. Decodes an HTTP header value intoCookies. This decoder can decode the HTTP cookie version 0, 1, and 2.HttpRequestreq = ...; String value = req.getHeader("Cookie"); Set<Cookie> cookies =CookieDecoder.decode(value);- See Also:
ClientCookieDecoder,ServerCookieDecoder
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringCOMMENTDeprecated.private static java.lang.StringCOMMENTURLDeprecated.private static java.lang.StringDISCARDDeprecated.private static CookieDecoderLAXDeprecated.private InternalLoggerloggerDeprecated.private static java.lang.StringPORTDeprecated.private booleanstrictDeprecated.private static CookieDecoderSTRICTDeprecated.private static java.lang.StringVERSIONDeprecated.
-
Constructor Summary
Constructors Modifier Constructor Description privateCookieDecoder(boolean strict)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.util.Set<Cookie>decode(java.lang.String header)Deprecated.static java.util.Set<Cookie>decode(java.lang.String header, boolean strict)Deprecated.private java.util.Set<Cookie>doDecode(java.lang.String header)Deprecated.Decodes the specified HTTP header value intoCookies.private static voidextractKeyValuePairs(java.lang.String header, java.util.List<java.lang.String> names, java.util.List<java.lang.String> values)Deprecated.private DefaultCookieinitCookie(java.lang.String name, java.lang.String value)Deprecated.
-
-
-
Field Detail
-
logger
private final InternalLogger logger
Deprecated.
-
STRICT
private static final CookieDecoder STRICT
Deprecated.
-
LAX
private static final CookieDecoder LAX
Deprecated.
-
COMMENT
private static final java.lang.String COMMENT
Deprecated.- See Also:
- Constant Field Values
-
COMMENTURL
private static final java.lang.String COMMENTURL
Deprecated.- See Also:
- Constant Field Values
-
DISCARD
private static final java.lang.String DISCARD
Deprecated.- See Also:
- Constant Field Values
-
PORT
private static final java.lang.String PORT
Deprecated.- See Also:
- Constant Field Values
-
VERSION
private static final java.lang.String VERSION
Deprecated.- See Also:
- Constant Field Values
-
strict
private final boolean strict
Deprecated.
-
-
Method Detail
-
decode
public static java.util.Set<Cookie> decode(java.lang.String header)
Deprecated.
-
decode
public static java.util.Set<Cookie> decode(java.lang.String header, boolean strict)
Deprecated.
-
doDecode
private java.util.Set<Cookie> doDecode(java.lang.String header)
Deprecated.Decodes the specified HTTP header value intoCookies.- 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.
-
-