|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ResponseStatus>
net.java.dev.webdav.jaxrs.ResponseStatus
public enum ResponseStatus
Commonly used status codes defined by WebDAV.
| Enum Constant Summary | |
|---|---|
FAILED_DEPENDENCY
424 Failed Dependency |
|
INSUFFICIENT_STORAGE
507 Insufficient Storage |
|
LOCKED
423 Locked |
|
MULTI_STATUS
207 Multi-Status |
|
UNPROCESSABLE_ENTITY
422 Unprocessable Entity |
|
| Method Summary | |
|---|---|
javax.ws.rs.core.Response.Status.Family |
getFamily()
|
java.lang.String |
getReasonPhrase()
|
int |
getStatusCode()
|
java.lang.String |
toString()
Deprecated. 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(java.lang.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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
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
| Method Detail |
|---|
public static ResponseStatus[] values()
for (ResponseStatus c : ResponseStatus.values()) System.out.println(c);
public static ResponseStatus 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 name
java.lang.NullPointerException - 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 java.lang.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 java.lang.Enum<ResponseStatus>public final java.lang.String getReasonPhrase()
getReasonPhrase in interface javax.ws.rs.core.Response.StatusType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||