org.jdesktop.http
Enum StatusCode

java.lang.Object
  extended by java.lang.Enum<StatusCode>
      extended by org.jdesktop.http.StatusCode
All Implemented Interfaces:
Serializable, Comparable<StatusCode>

public enum StatusCode
extends Enum<StatusCode>

Based on: The HttpClient project's HttpStatus class. http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html


Enum Constant Summary
ACCEPTED
           
BAD_GATEWAY
           
BAD_REQUEST
           
CONFLICT
           
CONTINUE
           
CREATED
           
EXPECTATION_FAILED
           
FAILED_DEPENDENCY
           
FORBIDDEN
           
GATEWAY_TIMEOUT
           
GONE
           
HTTP_VERSION_NOT_SUPPORTED
           
INSUFFICIENT_SPACE_ON_RESOURCE
           
INSUFFICIENT_STORAGE
           
INTERNAL_SERVER_ERROR
           
LENGTH_REQUIRED
           
LOCKED
           
METHOD_FAILURE
           
METHOD_NOT_ALLOWED
           
MOVED_PERMANENTLY
           
MOVED_TEMPORARILY
           
MULTI_STATUS
           
MULTIPLE_CHOICES
           
NO_CONTENT
           
NON_AUTHORITATIVE_INFORMATION
           
NOT_ACCEPTABLE
           
NOT_FOUND
           
NOT_IMPLEMENTED
           
NOT_MODIFIED
           
OK
           
PARTIAL_CONTENT
           
PAYMENT_REQUIRED
           
PRECONDITION_FAILED
           
PROCESSING
           
PROXY_AUTHENTICATION_REQUIRED
           
REQUEST_TIMEOUT
           
REQUEST_TOO_LONG
           
REQUEST_URI_TOO_LONG
           
REQUESTED_RANGE_NOT_SATISFIABLE
           
RESET_CONTENT
           
SEE_OTHER
           
SERVICE_UNAVAILABLE
           
SWITCHING_PROTOCOLS
           
TEMPORARY_REDIRECT
           
UNAUTHORIZED
           
UNPROCESSABLE_ENTITY
           
UNSUPPORTED_MEDIA_TYPE
           
USE_PROXY
           
 
Method Summary
 int getCode()
           
 String getDescription()
           
 String toString()
          Returns the name of this enum constant, as contained in the declaration.
static StatusCode valueOf(int code)
           
static StatusCode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static StatusCode[] 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, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CONTINUE

public static final StatusCode CONTINUE

SWITCHING_PROTOCOLS

public static final StatusCode SWITCHING_PROTOCOLS

PROCESSING

public static final StatusCode PROCESSING

OK

public static final StatusCode OK

CREATED

public static final StatusCode CREATED

ACCEPTED

public static final StatusCode ACCEPTED

NON_AUTHORITATIVE_INFORMATION

public static final StatusCode NON_AUTHORITATIVE_INFORMATION

NO_CONTENT

public static final StatusCode NO_CONTENT

RESET_CONTENT

public static final StatusCode RESET_CONTENT

PARTIAL_CONTENT

public static final StatusCode PARTIAL_CONTENT

MULTI_STATUS

public static final StatusCode MULTI_STATUS

MULTIPLE_CHOICES

public static final StatusCode MULTIPLE_CHOICES

MOVED_PERMANENTLY

public static final StatusCode MOVED_PERMANENTLY

MOVED_TEMPORARILY

public static final StatusCode MOVED_TEMPORARILY

SEE_OTHER

public static final StatusCode SEE_OTHER

NOT_MODIFIED

public static final StatusCode NOT_MODIFIED

USE_PROXY

public static final StatusCode USE_PROXY

TEMPORARY_REDIRECT

public static final StatusCode TEMPORARY_REDIRECT

BAD_REQUEST

public static final StatusCode BAD_REQUEST

UNAUTHORIZED

public static final StatusCode UNAUTHORIZED

PAYMENT_REQUIRED

public static final StatusCode PAYMENT_REQUIRED

FORBIDDEN

public static final StatusCode FORBIDDEN

NOT_FOUND

public static final StatusCode NOT_FOUND

METHOD_NOT_ALLOWED

public static final StatusCode METHOD_NOT_ALLOWED

NOT_ACCEPTABLE

public static final StatusCode NOT_ACCEPTABLE

PROXY_AUTHENTICATION_REQUIRED

public static final StatusCode PROXY_AUTHENTICATION_REQUIRED

REQUEST_TIMEOUT

public static final StatusCode REQUEST_TIMEOUT

CONFLICT

public static final StatusCode CONFLICT

GONE

public static final StatusCode GONE

LENGTH_REQUIRED

public static final StatusCode LENGTH_REQUIRED

PRECONDITION_FAILED

public static final StatusCode PRECONDITION_FAILED

REQUEST_TOO_LONG

public static final StatusCode REQUEST_TOO_LONG

REQUEST_URI_TOO_LONG

public static final StatusCode REQUEST_URI_TOO_LONG

UNSUPPORTED_MEDIA_TYPE

public static final StatusCode UNSUPPORTED_MEDIA_TYPE

REQUESTED_RANGE_NOT_SATISFIABLE

public static final StatusCode REQUESTED_RANGE_NOT_SATISFIABLE

EXPECTATION_FAILED

public static final StatusCode EXPECTATION_FAILED

UNPROCESSABLE_ENTITY

public static final StatusCode UNPROCESSABLE_ENTITY

INSUFFICIENT_SPACE_ON_RESOURCE

public static final StatusCode INSUFFICIENT_SPACE_ON_RESOURCE

METHOD_FAILURE

public static final StatusCode METHOD_FAILURE

LOCKED

public static final StatusCode LOCKED

FAILED_DEPENDENCY

public static final StatusCode FAILED_DEPENDENCY

INTERNAL_SERVER_ERROR

public static final StatusCode INTERNAL_SERVER_ERROR

NOT_IMPLEMENTED

public static final StatusCode NOT_IMPLEMENTED

BAD_GATEWAY

public static final StatusCode BAD_GATEWAY

SERVICE_UNAVAILABLE

public static final StatusCode SERVICE_UNAVAILABLE

GATEWAY_TIMEOUT

public static final StatusCode GATEWAY_TIMEOUT

HTTP_VERSION_NOT_SUPPORTED

public static final StatusCode HTTP_VERSION_NOT_SUPPORTED

INSUFFICIENT_STORAGE

public static final StatusCode INSUFFICIENT_STORAGE
Method Detail

values

public static StatusCode[] 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 (StatusCode c : StatusCode.values())
    System.out.println(c);

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

valueOf

public static StatusCode valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getCode

public int getCode()

getDescription

public String getDescription()

toString

public String toString()
Description copied from class: java.lang.Enum
Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum type should override this method when a more "programmer-friendly" string form exists.

Overrides:
toString in class Enum<StatusCode>
Returns:
the name of this enum constant

valueOf

public static StatusCode valueOf(int code)