public static enum ClientResponse.Status extends java.lang.Enum<ClientResponse.Status> implements Response.StatusType
Response.StatusType
.Modifier and Type | Method and Description |
---|---|
static ClientResponse.Status |
fromStatusCode(int statusCode)
Convert a numerical status code into the corresponding Status.
|
Response.Status.Family |
getFamily()
Get the class of status code.
|
static Response.Status.Family |
getFamilyByStatusCode(int statusCode)
Get the family from the response status code.
|
java.lang.String |
getReasonPhrase()
Get the reason phrase.
|
int |
getStatusCode()
Get the associated status code.
|
java.lang.String |
toString()
Get the reason phrase.
|
static ClientResponse.Status |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ClientResponse.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClientResponse.Status OK
public static final ClientResponse.Status CREATED
public static final ClientResponse.Status ACCEPTED
public static final ClientResponse.Status NON_AUTHORITIVE_INFORMATION
public static final ClientResponse.Status NO_CONTENT
public static final ClientResponse.Status RESET_CONTENT
public static final ClientResponse.Status PARTIAL_CONTENT
public static final ClientResponse.Status MOVED_PERMANENTLY
public static final ClientResponse.Status FOUND
public static final ClientResponse.Status SEE_OTHER
public static final ClientResponse.Status NOT_MODIFIED
public static final ClientResponse.Status USE_PROXY
public static final ClientResponse.Status TEMPORARY_REDIRECT
public static final ClientResponse.Status BAD_REQUEST
public static final ClientResponse.Status UNAUTHORIZED
public static final ClientResponse.Status PAYMENT_REQUIRED
public static final ClientResponse.Status FORBIDDEN
public static final ClientResponse.Status NOT_FOUND
public static final ClientResponse.Status METHOD_NOT_ALLOWED
public static final ClientResponse.Status NOT_ACCEPTABLE
public static final ClientResponse.Status PROXY_AUTHENTICATION_REQUIRED
public static final ClientResponse.Status REQUEST_TIMEOUT
public static final ClientResponse.Status CONFLICT
public static final ClientResponse.Status GONE
public static final ClientResponse.Status LENGTH_REQUIRED
public static final ClientResponse.Status PRECONDITION_FAILED
public static final ClientResponse.Status REQUEST_ENTITY_TOO_LARGE
public static final ClientResponse.Status REQUEST_URI_TOO_LONG
public static final ClientResponse.Status UNSUPPORTED_MEDIA_TYPE
public static final ClientResponse.Status REQUESTED_RANGE_NOT_SATIFIABLE
public static final ClientResponse.Status EXPECTATION_FAILED
public static final ClientResponse.Status INTERNAL_SERVER_ERROR
public static final ClientResponse.Status NOT_IMPLEMENTED
public static final ClientResponse.Status BAD_GATEWAY
public static final ClientResponse.Status SERVICE_UNAVAILABLE
public static final ClientResponse.Status GATEWAY_TIMEOUT
public static final ClientResponse.Status HTTP_VERSION_NOT_SUPPORTED
public static ClientResponse.Status[] values()
for (ClientResponse.Status c : ClientResponse.Status.values()) System.out.println(c);
public static ClientResponse.Status valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static Response.Status.Family getFamilyByStatusCode(int statusCode)
statusCode
- Response status code.public Response.Status.Family getFamily()
getFamily
in interface Response.StatusType
public int getStatusCode()
getStatusCode
in interface Response.StatusType
public java.lang.String getReasonPhrase()
getReasonPhrase
in interface Response.StatusType
public java.lang.String toString()
toString
in class java.lang.Enum<ClientResponse.Status>
public static ClientResponse.Status fromStatusCode(int statusCode)
statusCode
- the numerical status code.Copyright © 2016 Oracle Corporation. All Rights Reserved.