public static enum Http.ResponseStatus.Family extends java.lang.Enum<Http.ResponseStatus.Family>
Copied from JAX-RS.
| Enum Constant and Description |
|---|
CLIENT_ERROR
4xx HTTP status codes. |
INFORMATIONAL
1xx HTTP status codes. |
OTHER
Other, unrecognized HTTP status codes.
|
REDIRECTION
3xx HTTP status codes. |
SERVER_ERROR
5xx HTTP status codes. |
SUCCESSFUL
2xx HTTP status codes. |
| Modifier and Type | Method and Description |
|---|---|
static Http.ResponseStatus.Family |
of(int statusCode)
Get the family for the response status code.
|
static Http.ResponseStatus.Family |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Http.ResponseStatus.Family[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Http.ResponseStatus.Family INFORMATIONAL
1xx HTTP status codes.public static final Http.ResponseStatus.Family SUCCESSFUL
2xx HTTP status codes.public static final Http.ResponseStatus.Family REDIRECTION
3xx HTTP status codes.public static final Http.ResponseStatus.Family CLIENT_ERROR
4xx HTTP status codes.public static final Http.ResponseStatus.Family SERVER_ERROR
5xx HTTP status codes.public static final Http.ResponseStatus.Family OTHER
public static Http.ResponseStatus.Family[] values()
for (Http.ResponseStatus.Family c : Http.ResponseStatus.Family.values()) System.out.println(c);
public static Http.ResponseStatus.Family 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 static Http.ResponseStatus.Family of(int statusCode)
statusCode - response status code to get the family for.Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.