Enum Class StatusCodeClass

java.lang.Object
java.lang.Enum<StatusCodeClass>
burp.api.montoya.http.message.StatusCodeClass
All Implemented Interfaces:
Serializable, Comparable<StatusCodeClass>, Constable

public enum StatusCodeClass extends Enum<StatusCodeClass>
Status code classes that are defined in the HTTP standard.
  • Enum Constant Details

    • CLASS_1XX_INFORMATIONAL_RESPONSE

      public static final StatusCodeClass CLASS_1XX_INFORMATIONAL_RESPONSE
      Informational response (100 to 199).
    • CLASS_2XX_SUCCESS

      public static final StatusCodeClass CLASS_2XX_SUCCESS
      Success (200 to 299).
    • CLASS_3XX_REDIRECTION

      public static final StatusCodeClass CLASS_3XX_REDIRECTION
      Redirection (300 to 399).
    • CLASS_4XX_CLIENT_ERRORS

      public static final StatusCodeClass CLASS_4XX_CLIENT_ERRORS
      Client errors (400 to 499).
    • CLASS_5XX_SERVER_ERRORS

      public static final StatusCodeClass CLASS_5XX_SERVER_ERRORS
      Server errors (500 to 599).
  • Method Details

    • values

      public static StatusCodeClass[] 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 StatusCodeClass 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
    • startStatusCodeInclusive

      public int startStatusCodeInclusive()
      Returns:
      the inclusive start status code.
    • endStatusCodeExclusive

      public int endStatusCodeExclusive()
      Returns:
      the exclusive end status code.
    • contains

      public boolean contains(int statusCode)
      Parameters:
      statusCode - The status code to test.
      Returns:
      True if the status code is in the status code class.