- java.lang.Object
-
- java.lang.Enum<HttpCompliance.Violation>
-
- org.eclipse.jetty.http.HttpCompliance.Violation
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HttpCompliance.Violation>
,ComplianceViolation
- Enclosing class:
- HttpCompliance
public static enum HttpCompliance.Violation extends java.lang.Enum<HttpCompliance.Violation> implements ComplianceViolation
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.http.ComplianceViolation
ComplianceViolation.Listener, ComplianceViolation.Mode
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CASE_INSENSITIVE_METHOD
CASE_SENSITIVE_FIELD_NAME
HTTP_0_9
MULTILINE_FIELD_VALUE
MULTIPLE_CONTENT_LENGTHS
NO_COLON_AFTER_FIELD_NAME
TRANSFER_ENCODING_WITH_CONTENT_LENGTH
WHITESPACE_AFTER_FIELD_NAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDescription()
java.lang.String
getName()
java.lang.String
getURL()
static HttpCompliance.Violation
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static HttpCompliance.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, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.eclipse.jetty.http.ComplianceViolation
isAllowedBy
-
-
-
-
Enum Constant Detail
-
CASE_SENSITIVE_FIELD_NAME
public static final HttpCompliance.Violation CASE_SENSITIVE_FIELD_NAME
-
CASE_INSENSITIVE_METHOD
public static final HttpCompliance.Violation CASE_INSENSITIVE_METHOD
-
HTTP_0_9
public static final HttpCompliance.Violation HTTP_0_9
-
MULTILINE_FIELD_VALUE
public static final HttpCompliance.Violation MULTILINE_FIELD_VALUE
-
MULTIPLE_CONTENT_LENGTHS
public static final HttpCompliance.Violation MULTIPLE_CONTENT_LENGTHS
-
TRANSFER_ENCODING_WITH_CONTENT_LENGTH
public static final HttpCompliance.Violation TRANSFER_ENCODING_WITH_CONTENT_LENGTH
-
WHITESPACE_AFTER_FIELD_NAME
public static final HttpCompliance.Violation WHITESPACE_AFTER_FIELD_NAME
-
NO_COLON_AFTER_FIELD_NAME
public static final HttpCompliance.Violation NO_COLON_AFTER_FIELD_NAME
-
-
Method Detail
-
values
public static HttpCompliance.Violation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HttpCompliance.Violation c : HttpCompliance.Violation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpCompliance.Violation valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceComplianceViolation
-
getURL
public java.lang.String getURL()
- Specified by:
getURL
in interfaceComplianceViolation
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interfaceComplianceViolation
-
-