Package io.milton.http
Enum Response.Status
- java.lang.Object
-
- java.lang.Enum<Response.Status>
-
- io.milton.http.Response.Status
-
- All Implemented Interfaces:
Serializable,Comparable<Response.Status>
- Enclosing interface:
- Response
public static enum Response.Status extends Enum<Response.Status>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Response.StatusfromCode(int i)StringtoString()static Response.StatusvalueOf(String name)Returns the enum constant of this type with the specified name.static Response.Status[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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_TEMPORARY_REDIRECT
public static final Response.Status SC_TEMPORARY_REDIRECT
-
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
-
-
Field Detail
-
code
public int code
-
text
public String text
-
-
Method Detail
-
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(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 nameNullPointerException- if the argument is null
-
toString
public String toString()
- Overrides:
toStringin classEnum<Response.Status>
-
fromCode
public static Response.Status fromCode(int i)
-
-