public enum HttpStatusClass extends Enum<HttpStatusClass>
Enum Constant and Description |
---|
CLIENT_ERROR
The client error class (4xx)
|
INFORMATIONAL
The informational class (1xx)
|
REDIRECTION
The redirection class (3xx)
|
SERVER_ERROR
The server error class (5xx)
|
SUCCESS
The success class (2xx)
|
UNKNOWN
The unknown class
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(int code)
Returns
true if and only if the specified HTTP status code falls into this class. |
static HttpStatusClass |
valueOf(int code)
Returns the class of the specified HTTP status code.
|
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 final HttpStatusClass UNKNOWN
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 HttpStatusClass valueOf(int code)
public boolean contains(int code)
true
if and only if the specified HTTP status code falls into this class.Copyright © 2008–2017 The Netty Project. All rights reserved.