net.java.dev.webdav.core.jaxrs
Enum ResponseStatus

java.lang.Object
  extended by java.lang.Enum<ResponseStatus>
      extended by net.java.dev.webdav.core.jaxrs.ResponseStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ResponseStatus>

public enum ResponseStatus
extends java.lang.Enum<ResponseStatus>

Commonly used status codes defined by WebDAV.

Author:
Markus KARG (mkarg@users.dev.java.net)
See Also:
Chapter 11 "Status Code Extensions to HTTP/1.1" of RFC 4918 "HTTP Extensions for Web Distributed Authoring and Versioning (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()
           
 int getStatusCode()
           
 java.lang.String 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

MULTI_STATUS

public static final ResponseStatus MULTI_STATUS
207 Multi-Status

See Also:
Chapter 11.1 "207 Multi-Status" of RFC 4918 "HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV)"

UNPROCESSABLE_ENTITY

public static final ResponseStatus UNPROCESSABLE_ENTITY
422 Unprocessable Entity

See Also:
Chapter 11.2 "422 Unprocessable Entity" of RFC 4918 "HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV)"

LOCKED

public static final ResponseStatus LOCKED
423 Locked

See Also:
Chapter 11.3 "423 Locked" of RFC 4918 "HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV)"

FAILED_DEPENDENCY

public static final ResponseStatus FAILED_DEPENDENCY
424 Failed Dependency

See Also:
Chapter 11.4 "424 Failed Dependency" of RFC 4918 "HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV)"

INSUFFICIENT_STORAGE

public static final ResponseStatus INSUFFICIENT_STORAGE
507 Insufficient Storage

See Also:
Chapter 11.5 "507 Insufficient Storage" of RFC 4918 "HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV)"
Method Detail

values

public static ResponseStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ResponseStatus c : ResponseStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ResponseStatus valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getStatusCode

public final int getStatusCode()

getFamily

public final javax.ws.rs.core.Response.Status.Family getFamily()

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Enum<ResponseStatus>


Copyright © 2008-2009 The java.net WebDAV Project. All Rights Reserved.