Class ServerCookieDecoder
java.lang.Object
io.netty.handler.codec.http.cookie.CookieDecoder
io.netty.handler.codec.http.cookie.ServerCookieDecoder
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ServerCookieDecoderLax instance that doesn't validate name and valueprivate static final java.lang.Stringprivate static final java.lang.Stringprivate static final java.lang.Stringprivate static final java.lang.Stringstatic final ServerCookieDecoderStrict decoder that validates that name and value chars are in the valid scope defined in RFC6265 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjava.util.Set<Cookie> decode(java.lang.String header) Decodes the specifiedCookieHTTP header value into aCookie.private voidDecodes the specifiedCookieHTTP header value into aCookie.java.util.List<Cookie> decodeAll(java.lang.String header) Decodes the specifiedCookieHTTP header value into aCookie.Methods inherited from class CookieDecoder
initCookieMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
RFC2965_VERSION
private static final java.lang.String RFC2965_VERSION- See Also:
-
RFC2965_PATH
private static final java.lang.String RFC2965_PATH- See Also:
-
RFC2965_DOMAIN
private static final java.lang.String RFC2965_DOMAIN- See Also:
-
RFC2965_PORT
private static final java.lang.String RFC2965_PORT- See Also:
-
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
-
-
Constructor Details
-
ServerCookieDecoder
private ServerCookieDecoder(boolean strict)
-
-
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
-
decode
-