public enum StatusClass extends Enum<StatusClass>
Enum Constant and Description |
---|
CLIENT_ERROR
4xx Client Error.
|
INFORMATIONAL
1xx Informational.
|
REDIRECTION
3xx Redirection.
|
SERVER_ERROR
5xx Server Error.
|
SUCCESS
2xx Success.
|
UNKNOWN
0xx or >= 6xx Unknown.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isForceClose() |
String |
reasonPhrase() |
static StatusClass |
valueOf(int status) |
static StatusClass |
valueOf(Status status) |
static StatusClass |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StatusClass[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final StatusClass INFORMATIONAL
public static final StatusClass SUCCESS
public static final StatusClass REDIRECTION
public static final StatusClass CLIENT_ERROR
public static final StatusClass SERVER_ERROR
public static final StatusClass UNKNOWN
public static StatusClass[] values()
for (StatusClass c : StatusClass.values()) System.out.println(c);
public static StatusClass valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant with the specified name
NullPointerException
- if the argument is null
public static StatusClass valueOf(Status status)
status
- Status
public static StatusClass valueOf(int status)
status
- Status code
public String reasonPhrase()
public boolean isForceClose()