Package org.eclipse.jetty.http
Enum CookieCompliance.Violation
- All Implemented Interfaces:
Serializable
,Comparable<CookieCompliance.Violation>
,java.lang.constant.Constable
,ComplianceViolation
- Enclosing class:
- CookieCompliance
public static enum CookieCompliance.Violation
extends Enum<CookieCompliance.Violation>
implements ComplianceViolation
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface org.eclipse.jetty.http.ComplianceViolation
ComplianceViolation.Listener, ComplianceViolation.Mode
-
Enum Constant Summary
Enum ConstantDescriptionA cookie attribute value was found and its value is retained.A cookie attribute was found.Quotes are not balanced or are embedded in value.Deprecated.Use SPECIAL_CHARS_IN_QUOTESA comma was found as separator between cookies.A backslash was found in a quoted cookie value.An invalid cookie was found, without a more specific violation.Whitespace was found around the cookie name and/or around the cookie value.Deprecated.no replacement because was mistakenly considered a violationAllow spaces within values without quotes.Special characters were found in a quoted cookie value. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
getURL()
static CookieCompliance.Violation
Returns the enum constant of this type with the specified name.static CookieCompliance.Violation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface org.eclipse.jetty.http.ComplianceViolation
isAllowedBy
-
Enum Constant Details
-
COMMA_NOT_VALID_OCTET
Deprecated.Use SPECIAL_CHARS_IN_QUOTESA comma was found in a cookie value. -
COMMA_SEPARATOR
A comma was found as separator between cookies. -
RESERVED_NAMES_NOT_DOLLAR_PREFIXED
Deprecated.no replacement because was mistakenly considered a violation -
SPECIAL_CHARS_IN_QUOTES
Special characters were found in a quoted cookie value. -
ESCAPE_IN_QUOTES
A backslash was found in a quoted cookie value. -
BAD_QUOTES
Quotes are not balanced or are embedded in value. -
INVALID_COOKIES
An invalid cookie was found, without a more specific violation. When this violation is not allowed, an exception is thrown. -
ATTRIBUTES
A cookie attribute was found. The attribute value is retained only ifATTRIBUTE_VALUES
is allowed. -
ATTRIBUTE_VALUES
A cookie attribute value was found and its value is retained. AllowingATTRIBUTE_VALUE
implies allowingATTRIBUTES
. -
OPTIONAL_WHITE_SPACE
Whitespace was found around the cookie name and/or around the cookie value. -
SPACE_IN_VALUES
Allow spaces within values without quotes.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
- Specified by:
getName
in interfaceComplianceViolation
- Returns:
- The name of the violation.
-
getURL
- Specified by:
getURL
in interfaceComplianceViolation
- Returns:
- A URL to the specification that provides more information regarding the requirement that may be violated.
-
getDescription
- Specified by:
getDescription
in interfaceComplianceViolation
- Returns:
- A short description of the violation.
-