Enum Constant and Description |
---|
CLIENT_ERROR
Outcome of the request was client error.
|
INFORMATIONAL
Outcome of the request was informational.
|
REDIRECTION
Outcome of the request was redirection.
|
SERVER_ERROR
Outcome of the request was server error.
|
SUCCESS
Outcome of the request was success.
|
UNKNOWN
Outcome of the request was unknown.
|
Modifier and Type | Method and Description |
---|---|
Tag |
asTag()
|
static Outcome |
forStatus(int status)
Return the
Outcome for the given HTTP status code. |
static Outcome |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Outcome[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Outcome INFORMATIONAL
public static final Outcome SUCCESS
public static final Outcome REDIRECTION
public static final Outcome CLIENT_ERROR
public static final Outcome SERVER_ERROR
public static final Outcome UNKNOWN
public static Outcome[] values()
for (Outcome c : Outcome.values()) System.out.println(c);
public static Outcome 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 Tag asTag()
outcome
Tag
public static Outcome forStatus(int status)
Outcome
for the given HTTP status
code.status
- the HTTP status code