public static enum ResponseStatus.Custom extends Enum<ResponseStatus.Custom> implements javax.ws.rs.core.Response.StatusType
Response.Status enum.| Enum Constant and Description |
|---|
UNPROCESSABLE_ENTITY
422 Unprocessable Entity, see
https://tools.ietf.org/html/rfc4918#section-11.2
|
| Modifier and Type | Method and Description |
|---|---|
static ResponseStatus.Custom |
fromStatusCode(int code)
Convert a numerical status code into the corresponding CustomStatus.
|
javax.ws.rs.core.Response.Status.Family |
getFamily() |
String |
getReasonPhrase() |
int |
getStatusCode() |
String |
toString() |
static ResponseStatus.Custom |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResponseStatus.Custom[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponseStatus.Custom UNPROCESSABLE_ENTITY
public static ResponseStatus.Custom[] values()
for (ResponseStatus.Custom c : ResponseStatus.Custom.values()) System.out.println(c);
public static ResponseStatus.Custom 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 ResponseStatus.Custom fromStatusCode(int code)
code - the numerical status code.public int getStatusCode()
getStatusCode in interface javax.ws.rs.core.Response.StatusTypepublic javax.ws.rs.core.Response.Status.Family getFamily()
getFamily in interface javax.ws.rs.core.Response.StatusTypepublic String getReasonPhrase()
getReasonPhrase in interface javax.ws.rs.core.Response.StatusTypepublic String toString()
toString in class Enum<ResponseStatus.Custom>Copyright © 2018 Digipost. All rights reserved.