public enum HttpStatusClass extends Enum<HttpStatusClass>
| Enum Constant and Description |
|---|
CLIENT_ERROR
client error status, 4xx codes
|
INFORMATIONAL
informational status, 1xx codes
|
REDIRECTION
redirection status, 3xx codes
|
SERVER_ERROR
server error status, 5xx codes
|
SUCCESS
success status, 2xx codes
|
| Modifier and Type | Method and Description |
|---|---|
static HttpStatusClass |
get(org.apache.http.HttpResponse response)
Returns the status code class of the given HTTP response.
|
static HttpStatusClass |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpStatusClass[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpStatusClass INFORMATIONAL
public static final HttpStatusClass SUCCESS
public static final HttpStatusClass REDIRECTION
public static final HttpStatusClass CLIENT_ERROR
public static final HttpStatusClass SERVER_ERROR
public static HttpStatusClass[] values()
for (HttpStatusClass c : HttpStatusClass.values()) System.out.println(c);
public static HttpStatusClass 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 static final HttpStatusClass get(org.apache.http.HttpResponse response)
response - the HTTP responseCopyright © 2014-2017 Cinovo AG. All Rights Reserved.