Enum Class HttpURI.Violation

java.lang.Object
java.lang.Enum<HttpURI.Violation>
org.eclipse.jetty.http.HttpURI.Violation
All Implemented Interfaces:
Serializable, Comparable<HttpURI.Violation>, Constable
Enclosing class:
HttpURI

static enum HttpURI.Violation extends Enum<HttpURI.Violation>
Violations of safe URI interpretations
  • Enum Constant Details

    • 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/..;/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.
  • Field Details

    • _message

      private final String _message
  • Constructor Details

    • Violation

      private Violation(String message)
  • Method Details

    • values

      public static HttpURI.Violation[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static HttpURI.Violation valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getMessage

      String getMessage()