public static enum HttpStatus.Type extends java.lang.Enum<HttpStatus.Type>
Enum Constant and Description |
---|
CLIENT_ERROR |
INFORMATIONAL |
REDIRECTION |
SERVER_ERROR |
SUCCESSFUL |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRange() |
java.lang.String |
toString() |
static HttpStatus.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HttpStatus.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpStatus.Type INFORMATIONAL
public static final HttpStatus.Type SUCCESSFUL
public static final HttpStatus.Type REDIRECTION
public static final HttpStatus.Type CLIENT_ERROR
public static final HttpStatus.Type SERVER_ERROR
public static HttpStatus.Type[] values()
for (HttpStatus.Type c : HttpStatus.Type.values()) System.out.println(c);
public static HttpStatus.Type 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 java.lang.String getRange()
public java.lang.String toString()
toString
in class java.lang.Enum<HttpStatus.Type>