com.bradmcevoy.http
Enum Response.Status
java.lang.Object
java.lang.Enum<Response.Status>
com.bradmcevoy.http.Response.Status
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Response.Status>
- Enclosing interface:
- Response
public static enum Response.Status
- extends java.lang.Enum<Response.Status>
| 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 |
SC_OK
public static final Response.Status SC_OK
SC_CREATED
public static final Response.Status SC_CREATED
SC_ACCEPTED
public static final Response.Status SC_ACCEPTED
SC_NO_CONTENT
public static final Response.Status SC_NO_CONTENT
SC_MULTI_STATUS
public static final Response.Status SC_MULTI_STATUS
SC_MOVED_PERMANENTLY
public static final Response.Status SC_MOVED_PERMANENTLY
SC_MOVED_TEMPORARILY
public static final Response.Status SC_MOVED_TEMPORARILY
SC_NOT_MODIFIED
public static final Response.Status SC_NOT_MODIFIED
SC_BAD_REQUEST
public static final Response.Status SC_BAD_REQUEST
SC_UNAUTHORIZED
public static final Response.Status SC_UNAUTHORIZED
SC_FORBIDDEN
public static final Response.Status SC_FORBIDDEN
SC_NOT_FOUND
public static final Response.Status SC_NOT_FOUND
SC_INTERNAL_SERVER_ERROR
public static final Response.Status SC_INTERNAL_SERVER_ERROR
SC_NOT_IMPLEMENTED
public static final Response.Status SC_NOT_IMPLEMENTED
SC_BAD_GATEWAY
public static final Response.Status SC_BAD_GATEWAY
SC_SERVICE_UNAVAILABLE
public static final Response.Status SC_SERVICE_UNAVAILABLE
SC_PARTIAL_CONTENT
public static final Response.Status SC_PARTIAL_CONTENT
SC_CONTINUE
public static final Response.Status SC_CONTINUE
SC_METHOD_NOT_ALLOWED
public static final Response.Status SC_METHOD_NOT_ALLOWED
SC_CONFLICT
public static final Response.Status SC_CONFLICT
SC_PRECONDITION_FAILED
public static final Response.Status SC_PRECONDITION_FAILED
SC_REQUEST_TOO_LONG
public static final Response.Status SC_REQUEST_TOO_LONG
SC_UNSUPPORTED_MEDIA_TYPE
public static final Response.Status SC_UNSUPPORTED_MEDIA_TYPE
SC_EXPECTATION_FAILED
public static final Response.Status SC_EXPECTATION_FAILED
SC_UNPROCESSABLE_ENTITY
public static final Response.Status SC_UNPROCESSABLE_ENTITY
SC_INSUFFICIENT_STORAGE
public static final Response.Status SC_INSUFFICIENT_STORAGE
SC_METHOD_FAILURE
public static final Response.Status SC_METHOD_FAILURE
SC_LOCKED
public static final Response.Status SC_LOCKED
code
public int code
values
public static Response.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 (Response.Status c : Response.Status.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Response.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
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Enum<Response.Status>
fromCode
public Response.Status fromCode(int i)
Copyright © 2011. All Rights Reserved.