public static enum HttpStatus.Series extends java.lang.Enum<HttpStatus.Series>
Retrievable via HttpStatus.series()
.
Enum Constant and Description |
---|
CLIENT_ERROR |
INFORMATIONAL |
REDIRECTION |
SERVER_ERROR |
SUCCESSFUL |
Modifier and Type | Method and Description |
---|---|
static HttpStatus.Series |
resolve(int statusCode)
Resolve the given status code to an
HttpStatus.Series , if possible. |
int |
value()
Return the integer value of this status series.
|
static HttpStatus.Series |
valueOf(HttpStatus status)
Return the enum constant of this type with the corresponding series.
|
static HttpStatus.Series |
valueOf(int statusCode)
Return the enum constant of this type with the corresponding series.
|
static HttpStatus.Series |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HttpStatus.Series[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpStatus.Series INFORMATIONAL
public static final HttpStatus.Series SUCCESSFUL
public static final HttpStatus.Series REDIRECTION
public static final HttpStatus.Series CLIENT_ERROR
public static final HttpStatus.Series SERVER_ERROR
public static HttpStatus.Series[] values()
for (HttpStatus.Series c : HttpStatus.Series.values()) System.out.println(c);
public static HttpStatus.Series valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int value()
public static HttpStatus.Series valueOf(HttpStatus status)
status
- a standard HTTP status enum valuejava.lang.IllegalArgumentException
- if this enum has no corresponding constantpublic static HttpStatus.Series valueOf(int statusCode)
statusCode
- the HTTP status code (potentially non-standard)java.lang.IllegalArgumentException
- if this enum has no corresponding constant@Nullable public static HttpStatus.Series resolve(int statusCode)
HttpStatus.Series
, if possible.statusCode
- the HTTP status code (potentially non-standard)Series
, or null
if not found