Class ServerCookieDecoder
java.lang.Object
io.netty.handler.codec.http.cookie.CookieDecoder
io.netty.handler.codec.http.cookie.ServerCookieDecoder
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final ServerCookieDecoderLax instance that doesn't validate name and valuestatic final ServerCookieDecoderStrict decoder that validates that name and value chars are in the valid scope defined in RFC6265 -
Method Summary
Methods inherited from class io.netty.handler.codec.http.cookie.CookieDecoder
initCookie
-
Field Details
-
STRICT
Strict decoder that validates that name and value chars are in the valid scope defined in RFC6265 -
LAX
Lax instance that doesn't validate name and value
-
-
Method Details
-
decodeAll
Decodes the specifiedCookieHTTP header value into aCookie. Unlikedecode(String), this includes all cookie values present, even if they have the same name.- Returns:
- the decoded
Cookie
-
decode
Decodes the specifiedCookieHTTP header value into aCookie.- Returns:
- the decoded
Cookie
-