Package burp.api.montoya.http.message
Enum Class StatusCodeClass
- All Implemented Interfaces:
Serializable
,Comparable<StatusCodeClass>
,Constable
Status code classes that are defined in the HTTP standard.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionInformational response (100 to 199).Success (200 to 299).Redirection (300 to 399).Client errors (400 to 499).Server errors (500 to 599). -
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(int statusCode) int
int
static StatusCodeClass
Returns the enum constant of this class with the specified name.static StatusCodeClass[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLASS_1XX_INFORMATIONAL_RESPONSE
Informational response (100 to 199). -
CLASS_2XX_SUCCESS
Success (200 to 299). -
CLASS_3XX_REDIRECTION
Redirection (300 to 399). -
CLASS_4XX_CLIENT_ERRORS
Client errors (400 to 499). -
CLASS_5XX_SERVER_ERRORS
Server errors (500 to 599).
-
-
Method Details
-
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
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 nameNullPointerException
- 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.
-