restart.common
Enum ErrorCode

java.lang.Object
  extended by java.lang.Enum<ErrorCode>
      extended by restart.common.ErrorCode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ErrorCode>

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


Enum Constant Summary
E100_CONTINUE
           
E101_SWITCHING_PROTOCOLS
           
E200_OK
           
E201_CREATED
           
E202_ACCEPTED
           
E203_NON_AUTHORITATIVE_INFORMATION
           
E204_NO_CONTENT
           
E205_RESET_CONTENT
           
E206_PARTIAL_CONTENT
           
E300_MULTIPLE_CHOICES
           
E301_MOVED_PERMANENTLY
           
E302_MOVED_TEMPORARILY
           
E303_SEE_OTHER
           
E304_NOT_MODIFIED
           
E305_USE_PROXY
           
E307_TEMPORARY_REDIRECT
           
E400_BAD_REQUEST
           
E401_UNAUTHORIZED
           
E402_PAYMENT_REQUIRED
           
E403_REQUEST_FORBIDDEN
           
E404_NOT_FOUND
           
E405_METHOD_NOT_ALLOWED
           
E406_NOT_ACCEPTABLE
           
E407_PROXY_AUTH_REQUIRED
           
E408_REQUEST_TIMEOUT
           
E409_CONFLICT
           
E410_GONE
           
E411_LENGTH_REQUIRED
           
E412_PRECONDITION_FAILED
           
E413_REQUEST_ENTITY_TOO_LARGE
           
E414_REQUEST_URI_TOO_LONG
           
E415_UNSUPPORTED_MEDIA_TYPE
           
E416_REQUEST_RANGE
           
E417_EXPECTATION_FAILED
           
E500_SERVER_ERROR
           
E501_NOT_IMPLEMENTED
           
E502_BAD_GATEWAY
           
E503_SERVICE_UNAVAILABLE
           
E504_GATEWAY_TIMEOUT
           
E505_VERSION_NOT_SUPPORTED
           
 
Method Summary
static void autoTest()
           
static ErrorCode fromInt(int i)
           
static ErrorCode fromString(java.lang.String s)
           
static void main(java.lang.String[] args)
           
 java.lang.String toString()
           
static ErrorCode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ErrorCode[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

E100_CONTINUE

public static final ErrorCode E100_CONTINUE

E101_SWITCHING_PROTOCOLS

public static final ErrorCode E101_SWITCHING_PROTOCOLS

E200_OK

public static final ErrorCode E200_OK

E201_CREATED

public static final ErrorCode E201_CREATED

E202_ACCEPTED

public static final ErrorCode E202_ACCEPTED

E203_NON_AUTHORITATIVE_INFORMATION

public static final ErrorCode E203_NON_AUTHORITATIVE_INFORMATION

E204_NO_CONTENT

public static final ErrorCode E204_NO_CONTENT

E205_RESET_CONTENT

public static final ErrorCode E205_RESET_CONTENT

E206_PARTIAL_CONTENT

public static final ErrorCode E206_PARTIAL_CONTENT

E300_MULTIPLE_CHOICES

public static final ErrorCode E300_MULTIPLE_CHOICES

E301_MOVED_PERMANENTLY

public static final ErrorCode E301_MOVED_PERMANENTLY

E302_MOVED_TEMPORARILY

public static final ErrorCode E302_MOVED_TEMPORARILY

E303_SEE_OTHER

public static final ErrorCode E303_SEE_OTHER

E304_NOT_MODIFIED

public static final ErrorCode E304_NOT_MODIFIED

E305_USE_PROXY

public static final ErrorCode E305_USE_PROXY

E307_TEMPORARY_REDIRECT

public static final ErrorCode E307_TEMPORARY_REDIRECT

E400_BAD_REQUEST

public static final ErrorCode E400_BAD_REQUEST

E401_UNAUTHORIZED

public static final ErrorCode E401_UNAUTHORIZED

E402_PAYMENT_REQUIRED

public static final ErrorCode E402_PAYMENT_REQUIRED

E403_REQUEST_FORBIDDEN

public static final ErrorCode E403_REQUEST_FORBIDDEN

E404_NOT_FOUND

public static final ErrorCode E404_NOT_FOUND

E405_METHOD_NOT_ALLOWED

public static final ErrorCode E405_METHOD_NOT_ALLOWED

E406_NOT_ACCEPTABLE

public static final ErrorCode E406_NOT_ACCEPTABLE

E407_PROXY_AUTH_REQUIRED

public static final ErrorCode E407_PROXY_AUTH_REQUIRED

E408_REQUEST_TIMEOUT

public static final ErrorCode E408_REQUEST_TIMEOUT

E409_CONFLICT

public static final ErrorCode E409_CONFLICT

E410_GONE

public static final ErrorCode E410_GONE

E411_LENGTH_REQUIRED

public static final ErrorCode E411_LENGTH_REQUIRED

E412_PRECONDITION_FAILED

public static final ErrorCode E412_PRECONDITION_FAILED

E413_REQUEST_ENTITY_TOO_LARGE

public static final ErrorCode E413_REQUEST_ENTITY_TOO_LARGE

E414_REQUEST_URI_TOO_LONG

public static final ErrorCode E414_REQUEST_URI_TOO_LONG

E415_UNSUPPORTED_MEDIA_TYPE

public static final ErrorCode E415_UNSUPPORTED_MEDIA_TYPE

E416_REQUEST_RANGE

public static final ErrorCode E416_REQUEST_RANGE

E417_EXPECTATION_FAILED

public static final ErrorCode E417_EXPECTATION_FAILED

E500_SERVER_ERROR

public static final ErrorCode E500_SERVER_ERROR

E501_NOT_IMPLEMENTED

public static final ErrorCode E501_NOT_IMPLEMENTED

E502_BAD_GATEWAY

public static final ErrorCode E502_BAD_GATEWAY

E503_SERVICE_UNAVAILABLE

public static final ErrorCode E503_SERVICE_UNAVAILABLE

E504_GATEWAY_TIMEOUT

public static final ErrorCode E504_GATEWAY_TIMEOUT

E505_VERSION_NOT_SUPPORTED

public static final ErrorCode E505_VERSION_NOT_SUPPORTED
Method Detail

values

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

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

valueOf

public static ErrorCode 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

toString

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

fromString

public static ErrorCode fromString(java.lang.String s)

fromInt

public static ErrorCode fromInt(int i)

autoTest

public static void autoTest()

main

public static void main(java.lang.String[] args)