Package org.eclipse.jetty.http
Enum HttpURI.Violation
- All Implemented Interfaces:
Serializable
,Comparable<HttpURI.Violation>
- Enclosing class:
- HttpURI
Violations of safe URI interpretations
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAmbiguous empty segments e.g.Ambiguous double encoding within a URI segment e.g.Ambiguous path parameters within a URI segment e.g.Ambiguous path segments e.g.Ambiguous path separator within a URI segment e.g.Non standard UTF-16 encoding eg/foo%u2192bar
. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) String
static HttpURI.Violation
Returns the enum constant of this type with the specified name.static HttpURI.Violation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SEGMENT
Ambiguous path segments e.g./foo/%2E%2E/bar
-
SEPARATOR
Ambiguous path separator within a URI segment e.g./foo%2Fbar
-
PARAM
Ambiguous path parameters within a URI segment e.g./foo/..;/bar
or/foo/%2e%2e;param/bar
-
ENCODING
Ambiguous double encoding within a URI segment e.g./%2557EB-INF
-
EMPTY
Ambiguous empty segments e.g./foo//bar
-
UTF16
Non standard UTF-16 encoding eg/foo%u2192bar
.
-
-
Field Details
-
_message
-
-
Constructor Details
-
Violation
-
-
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
-
getMessage
String getMessage()
-