public static enum HttpStatus.Series extends 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)
Deprecated.
as of 5.3, in favor of invoking
HttpStatus.series() directly |
static HttpStatus.Series |
valueOf(int statusCode)
Return the
Series enum constant for the supplied status code. |
static HttpStatus.Series |
valueOf(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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int value()
@Deprecated public static HttpStatus.Series valueOf(HttpStatus status)
HttpStatus.series()
directlySeries
enum constant for the supplied HttpStatus
.status
- a standard HTTP status enum constantSeries
enum constant for the supplied HttpStatus
public static HttpStatus.Series valueOf(int statusCode)
Series
enum constant for the supplied status code.statusCode
- the HTTP status code (potentially non-standard)Series
enum constant for the supplied status codeIllegalArgumentException
- 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