Class CookieDecoder
- java.lang.Object
-
- org.jboss.netty.handler.codec.http.CookieDecoder
-
@Deprecated public final class CookieDecoder extends java.lang.Object
Deprecated.Useio.netty.handler.codec.http.cookie.ClientCookieDecoder
orio.netty.handler.codec.http.cookie.ServerCookieDecoder
instead. Decodes an HTTP header value intoCookie
s. 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 intoCookie
s.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.
-
-
-
Field Detail
-
logger
private final InternalLogger logger
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
-
COMMA
private static final char COMMA
Deprecated.- See Also:
- Constant Field Values
-
strict
private final boolean strict
Deprecated.
-
-
Method Detail
-
decode
public java.util.Set<Cookie> decode(java.lang.String header)
Deprecated.Decodes the specified HTTP header value intoCookie
s.- Returns:
- the decoded
Cookie
s
-
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.
-
-