public static enum Response.Status extends Enum<Response.Status> implements Response.StatusType
Response.StatusType
.Modifier and Type | Class and Description |
---|---|
static class |
Response.Status.Family
An enumeration representing the class of status code.
|
Modifier and Type | Method and Description |
---|---|
static Response.Status |
fromStatusCode(int statusCode)
Convert a numerical status code into the corresponding Status.
|
Response.Status.Family |
getFamily()
Get the class of status code.
|
String |
getReasonPhrase()
Get the reason phrase.
|
int |
getStatusCode()
Get the associated status code.
|
String |
toString()
Get the reason phrase.
|
static Response.Status |
valueOf(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.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
toEnum
public static final Response.Status OK
public static final Response.Status CREATED
public static final Response.Status ACCEPTED
public static final Response.Status NO_CONTENT
public static final Response.Status RESET_CONTENT
public static final Response.Status PARTIAL_CONTENT
public static final Response.Status MOVED_PERMANENTLY
public static final Response.Status FOUND
public static final Response.Status SEE_OTHER
public static final Response.Status NOT_MODIFIED
public static final Response.Status USE_PROXY
public static final Response.Status TEMPORARY_REDIRECT
public static final Response.Status BAD_REQUEST
public static final Response.Status UNAUTHORIZED
public static final Response.Status PAYMENT_REQUIRED
public static final Response.Status FORBIDDEN
public static final Response.Status NOT_FOUND
public static final Response.Status METHOD_NOT_ALLOWED
public static final Response.Status NOT_ACCEPTABLE
public static final Response.Status PROXY_AUTHENTICATION_REQUIRED
public static final Response.Status REQUEST_TIMEOUT
public static final Response.Status CONFLICT
public static final Response.Status GONE
public static final Response.Status LENGTH_REQUIRED
public static final Response.Status PRECONDITION_FAILED
public static final Response.Status REQUEST_ENTITY_TOO_LARGE
public static final Response.Status REQUEST_URI_TOO_LONG
public static final Response.Status UNSUPPORTED_MEDIA_TYPE
public static final Response.Status REQUESTED_RANGE_NOT_SATISFIABLE
public static final Response.Status EXPECTATION_FAILED
public static final Response.Status PRECONDITION_REQUIRED
public static final Response.Status TOO_MANY_REQUESTS
public static final Response.Status REQUEST_HEADER_FIELDS_TOO_LARGE
public static final Response.Status INTERNAL_SERVER_ERROR
public static final Response.Status NOT_IMPLEMENTED
public static final Response.Status BAD_GATEWAY
public static final Response.Status SERVICE_UNAVAILABLE
public static final Response.Status GATEWAY_TIMEOUT
public static final Response.Status HTTP_VERSION_NOT_SUPPORTED
public static final Response.Status NETWORK_AUTHENTICATION_REQUIRED
public static Response.Status[] values()
for (Response.Status c : Response.Status.values()) System.out.println(c);
public static Response.Status valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Response.Status.Family getFamily()
getFamily
in interface Response.StatusType
public int getStatusCode()
getStatusCode
in interface Response.StatusType
public String getReasonPhrase()
getReasonPhrase
in interface Response.StatusType
public String toString()
toString
in class Enum<Response.Status>
public static Response.Status fromStatusCode(int statusCode)
statusCode
- the numerical status code.Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.