public enum ResponseStatus extends Enum<ResponseStatus> implements javax.ws.rs.core.Response.StatusType
| Enum Constant and Description |
|---|
FAILED_DEPENDENCY
424 Failed Dependency
|
INSUFFICIENT_STORAGE
507 Insufficient Storage
|
LOCKED
423 Locked
|
MULTI_STATUS
207 Multi-Status
|
UNPROCESSABLE_ENTITY
422 Unprocessable Entity
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response.Status.Family |
getFamily() |
String |
getReasonPhrase() |
int |
getStatusCode() |
String |
toString()
Deprecated.
Since 1.1. Use
getReasonPhrase() instead to get the reason phrase. Future releases will return the name of the enum constant instead
of the reason phrase (see Enum.toString()). |
static ResponseStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResponseStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponseStatus MULTI_STATUS
public static final ResponseStatus UNPROCESSABLE_ENTITY
public static final ResponseStatus LOCKED
public static final ResponseStatus FAILED_DEPENDENCY
public static final ResponseStatus INSUFFICIENT_STORAGE
public static ResponseStatus[] values()
for (ResponseStatus c : ResponseStatus.values()) System.out.println(c);
public static ResponseStatus 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 final int getStatusCode()
getStatusCode in interface javax.ws.rs.core.Response.StatusTypepublic final javax.ws.rs.core.Response.Status.Family getFamily()
getFamily in interface javax.ws.rs.core.Response.StatusType@Deprecated public final String toString()
getReasonPhrase() instead to get the reason phrase. Future releases will return the name of the enum constant instead
of the reason phrase (see Enum.toString()).toString in class Enum<ResponseStatus>public final String getReasonPhrase()
getReasonPhrase in interface javax.ws.rs.core.Response.StatusTypeCopyright © 2008-2014 The java.net WebDAV Project. All Rights Reserved.