Package org.eclipse.jetty.http
Enum HttpURI.Violation
- java.lang.Object
-
- java.lang.Enum<HttpURI.Violation>
-
- org.eclipse.jetty.http.HttpURI.Violation
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<HttpURI.Violation>
- Enclosing class:
- HttpURI
static enum HttpURI.Violation extends java.lang.Enum<HttpURI.Violation>
Violations of safe URI interpretations
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EMPTYAmbiguous empty segments e.g.ENCODINGAmbiguous double encoding within a URI segment e.g.PARAMAmbiguous path parameters within a URI segment e.g.SEGMENTAmbiguous path segments e.g.SEPARATORAmbiguous path separator within a URI segment e.g.USER_INFOUser info in authorityUTF16Non standard UTF-16 encoding eg/foo%u2192bar.
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String_message
-
Constructor Summary
Constructors Modifier Constructor Description privateViolation(java.lang.String message)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.lang.StringgetMessage()static HttpURI.ViolationvalueOf(java.lang.String name)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 Detail
-
SEGMENT
public static final HttpURI.Violation SEGMENT
Ambiguous path segments e.g./foo/%2E%2E/bar
-
SEPARATOR
public static final HttpURI.Violation SEPARATOR
Ambiguous path separator within a URI segment e.g./foo%2Fbar
-
PARAM
public static final HttpURI.Violation PARAM
Ambiguous path parameters within a URI segment e.g./foo/..;/baror/foo/%2e%2e;param/bar
-
ENCODING
public static final HttpURI.Violation ENCODING
Ambiguous double encoding within a URI segment e.g./%2557EB-INF
-
EMPTY
public static final HttpURI.Violation EMPTY
Ambiguous empty segments e.g./foo//bar
-
UTF16
public static final HttpURI.Violation UTF16
Non standard UTF-16 encoding eg/foo%u2192bar.
-
USER_INFO
public static final HttpURI.Violation USER_INFO
User info in authority
-
-
Method Detail
-
values
public static HttpURI.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 (HttpURI.Violation c : HttpURI.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 HttpURI.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
-
getMessage
java.lang.String getMessage()
-
-