Class ServerCookie.CookieSupport
- java.lang.Object
-
- com.hybris.yprofile.consent.cookie.ServerCookie.CookieSupport
-
- Enclosing class:
- ServerCookie
public static final class ServerCookie.CookieSupport extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static booleanALLOW_EQUALS_IN_VALUEIf true, cookie values are allowed to contain an equals character without being quoted.static booleanALLOW_HTTP_SEPARATORS_IN_V0If true, separators that are not explicitly dis-allowed by the v0 cookie spec but are disallowed by the HTTP spec will be allowed in v0 cookie names and values.static booleanALLOW_NAME_ONLYIf true, name only cookies will be permitted.static booleanALWAYS_ADD_EXPIRESIf set to false, we don't use the IE6/7 Max-Age/Expires work around.static booleanFWD_SLASH_IS_SEPARATORIf set to true, the/character will be treated as a separator.static booleanSTRICT_SERVLET_COMPLIANCEIf set to true, we parse cookies strictly according to the servlet, cookie and HTTP specs by default.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanalreadyQuoted(java.lang.String value)static booleanisHttpSeparator(char c)Returns true if the byte is a separator as defined by V1 of the cookie spec, RFC2109.static booleanisHttpToken(java.lang.String value)static booleanisV0Separator(char c)Returns true if the byte is a separator as defined by V0 of the cookie spec.static booleanisV0Token(java.lang.String value)
-
-
-
Field Detail
-
STRICT_SERVLET_COMPLIANCE
public static final boolean STRICT_SERVLET_COMPLIANCE
If set to true, we parse cookies strictly according to the servlet, cookie and HTTP specs by default.
-
ALLOW_EQUALS_IN_VALUE
public static final boolean ALLOW_EQUALS_IN_VALUE
If true, cookie values are allowed to contain an equals character without being quoted.
-
ALLOW_HTTP_SEPARATORS_IN_V0
public static final boolean ALLOW_HTTP_SEPARATORS_IN_V0
If true, separators that are not explicitly dis-allowed by the v0 cookie spec but are disallowed by the HTTP spec will be allowed in v0 cookie names and values. These characters are: \"()/:<=>?@[\\]{} Note that the inclusion of / depends on the value ofFWD_SLASH_IS_SEPARATOR.
-
ALWAYS_ADD_EXPIRES
public static final boolean ALWAYS_ADD_EXPIRES
If set to false, we don't use the IE6/7 Max-Age/Expires work around. Default is usually true. If STRICT_SERVLET_COMPLIANCE==true then default is false. Explicitly setting always takes priority.
-
FWD_SLASH_IS_SEPARATOR
public static final boolean FWD_SLASH_IS_SEPARATOR
If set to true, the/character will be treated as a separator. Default is usually false. If STRICT_SERVLET_COMPLIANCE==true then default is true. Explicitly setting always takes priority.
-
ALLOW_NAME_ONLY
public static final boolean ALLOW_NAME_ONLY
If true, name only cookies will be permitted.
-
-
Method Detail
-
isV0Separator
public static final boolean isV0Separator(char c)
Returns true if the byte is a separator as defined by V0 of the cookie spec.
-
isV0Token
public static boolean isV0Token(java.lang.String value)
-
isHttpSeparator
public static final boolean isHttpSeparator(char c)
Returns true if the byte is a separator as defined by V1 of the cookie spec, RFC2109.- Throws:
java.lang.IllegalArgumentException- if a control character was supplied as input
-
isHttpToken
public static boolean isHttpToken(java.lang.String value)
-
alreadyQuoted
public static boolean alreadyQuoted(java.lang.String value)
-
-