com.eclipsesource.restfuse
Enum Status
java.lang.Object
java.lang.Enum<Status>
com.eclipsesource.restfuse.Status
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Status>
public enum Status
- extends java.lang.Enum<Status>
The Status
enumeration contains values that can be used within a request/response
to represent it's status code. All values available in the official RFC 2616
(http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html) are implemented.
- See Also:
Request
,
Response
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 |
ACCEPTED
public static final Status ACCEPTED
BAD_GATEWAY
public static final Status BAD_GATEWAY
BAD_REQUEST
public static final Status BAD_REQUEST
CONFLICT
public static final Status CONFLICT
CONTINUE
public static final Status CONTINUE
CREATED
public static final Status CREATED
EXPECTATION_FAILED
public static final Status EXPECTATION_FAILED
FORBIDDEN
public static final Status FORBIDDEN
FOUND
public static final Status FOUND
GATEWAY_TIMEOUT
public static final Status GATEWAY_TIMEOUT
GONE
public static final Status GONE
HTTP_VERSION_NOT_SUPPORTED
public static final Status HTTP_VERSION_NOT_SUPPORTED
INTERNAL_SERVER_ERROR
public static final Status INTERNAL_SERVER_ERROR
LENGTH_REQUIRED
public static final Status LENGTH_REQUIRED
METHOD_NOT_ALLOWED
public static final Status METHOD_NOT_ALLOWED
MOVED_PERMANENTLY
public static final Status MOVED_PERMANENTLY
MULTIPLE_CHOICES
public static final Status MULTIPLE_CHOICES
NO_CONTENT
public static final Status NO_CONTENT
NON_AUTHORITATIVE_INFORMATION
public static final Status NON_AUTHORITATIVE_INFORMATION
NOT_ACCEPTABLE
public static final Status NOT_ACCEPTABLE
NOT_FOUND
public static final Status NOT_FOUND
NOT_IMPLEMENTED
public static final Status NOT_IMPLEMENTED
NOT_MODIFIED
public static final Status NOT_MODIFIED
OK
public static final Status OK
PARTIAL_CONTENT
public static final Status PARTIAL_CONTENT
PAYMENT_REQUIRED
public static final Status PAYMENT_REQUIRED
PRECONDITION_FAILED
public static final Status PRECONDITION_FAILED
PROXY_AUTHENTICATION_REQUIRED
public static final Status PROXY_AUTHENTICATION_REQUIRED
REQUEST_ENTITY_TOO_LARGE
public static final Status REQUEST_ENTITY_TOO_LARGE
REQUEST_RANGE_NOT_SATISFIABLE
public static final Status REQUEST_RANGE_NOT_SATISFIABLE
REQUEST_TIMEOUT
public static final Status REQUEST_TIMEOUT
REQUEST_URI_TOO_LONG
public static final Status REQUEST_URI_TOO_LONG
RESET_CONTENT
public static final Status RESET_CONTENT
SEE_OTHER
public static final Status SEE_OTHER
SERVICE_UNAVAILABLE
public static final Status SERVICE_UNAVAILABLE
SWITCHING_PROTOCOLS
public static final Status SWITCHING_PROTOCOLS
TEMPORARY_REDIRECT
public static final Status TEMPORARY_REDIRECT
UNAUTHORIZED
public static final Status UNAUTHORIZED
UNSUPPORTED_MEDIA_TYPE
public static final Status UNSUPPORTED_MEDIA_TYPE
USE_PROXY
public static final Status USE_PROXY
getFamily
public Status.Family getFamily()
getStatusCode
public int getStatusCode()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Enum<Status>
valueOf
public static Status 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
values
public static Status[] 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 (Status c : Status.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared