Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD

## com.sun.jersey.api.client
Enum ClientResponse.Status

    java.lang.Object
      java.lang.Enum<ClientResponse.Status>
          com.sun.jersey.api.client.ClientResponse.Status

All Implemented Interfaces:
  java.io.Serializable, java.lang.Comparable<ClientResponse.Status>, Response.StatusType

Enclosing class:
  ClientResponse

    public static enum ClientResponse.Status

extends java.lang.Enum<ClientResponse.Status>
implements Response.StatusType

Status codes defined by HTTP, see HTTP/1.1 documentation. Additional status codes can be added by applications by creating an implementation of `Response.StatusType`.

Enum Constant Summary
`ACCEPTED` 202 Accepted, see HTTP/1.1 documentation.
`BAD_GATEWAY` 502 Bad Gateway, see HTTP/1.1 documentation.
`BAD_REQUEST` 400 Bad Request, see HTTP/1.1 documentation.
`CONFLICT` 409 Conflict, see HTTP/1.1 documentation.
`CREATED` 201 Created, see HTTP/1.1 documentation.
`EXPECTATION_FAILED` 417 Expectation Failed, see HTTP/1.1 documentation.
`FORBIDDEN` 403 Forbidden, see HTTP/1.1 documentation.
`FOUND` 302 Found, see HTTP/1.1 documentation.
`GATEWAY_TIMEOUT` 504 Gateway Timeout, see HTTP/1.1 documentation.
`GONE` 410 Gone, see HTTP/1.1 documentation.
`HTTP_VERSION_NOT_SUPPORTED` 505 HTTP Version Not Supported, see HTTP/1.1 documentation.
`INTERNAL_SERVER_ERROR` 500 Internal Server Error, see HTTP/1.1 documentation.
`LENGTH_REQUIRED` 411 Length Required, see HTTP/1.1 documentation.
`METHOD_NOT_ALLOWED` 405 Method Not Allowed, see HTTP/1.1 documentation.
`MOVED_PERMANENTLY` 301 Moved Permantely, see HTTP/1.1 documentation.
`NO_CONTENT` 204 No Content, see HTTP/1.1 documentation.
`NON_AUTHORITIVE_INFORMATION` 202 Accepted, see HTTP/1.1 documentation.
`NOT_ACCEPTABLE` 406 Not Acceptable, see HTTP/1.1 documentation.
`NOT_FOUND` 404 Not Found, see HTTP/1.1 documentation.
`NOT_IMPLEMENTED` 501 Not Implemented, see HTTP/1.1 documentation.
`NOT_MODIFIED` 304 Not Modified, see HTTP/1.1 documentation.
`OK` 200 OK, see HTTP/1.1 documentation.
`PARTIAL_CONTENT` 206 Reset Content, see HTTP/1.1 documentation.
`PAYMENT_REQUIRED` 402 Payment Required, see HTTP/1.1 documentation.
`PRECONDITION_FAILED` 412 Precondition Failed, see HTTP/1.1 documentation.
`PROXY_AUTHENTICATION_REQUIRED` 407 Proxy Authentication Required, see HTTP/1.1 documentation.
`REQUEST_ENTITY_TOO_LARGE` 413 Request Entity Too Large, see HTTP/1.1 documentation.
`REQUEST_TIMEOUT` 408 Request Timeout, see HTTP/1.1 documentation.
`REQUEST_URI_TOO_LONG` 414 Request-URI Too Long, see HTTP/1.1 documentation.
`REQUESTED_RANGE_NOT_SATIFIABLE` 416 Requested Range Not Satisfiable, see HTTP/1.1 documentation.
`RESET_CONTENT` 205 Reset Content, see HTTP/1.1 documentation.
`SEE_OTHER` 303 See Other, see HTTP/1.1 documentation.
`SERVICE_UNAVAILABLE` 503 Service Unavailable, see HTTP/1.1 documentation.
`TEMPORARY_REDIRECT` 307 Temporary Redirect, see HTTP/1.1 documentation.
`UNAUTHORIZED` 401 Unauthorized, see HTTP/1.1 documentation.
`UNSUPPORTED_MEDIA_TYPE` 415 Unsupported Media Type, see HTTP/1.1 documentation.
`USE_PROXY` 305 Use Proxy, see HTTP/1.1 documentation.

Method Summary
`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.
`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.

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`

Enum Constant Detail

### OK

    public static final ClientResponse.Status OK

  200 OK, see HTTP/1.1 documentation.

### CREATED

    public static final ClientResponse.Status CREATED

  201 Created, see HTTP/1.1 documentation.

### ACCEPTED

    public static final ClientResponse.Status ACCEPTED

  202 Accepted, see HTTP/1.1 documentation.

### NON_AUTHORITIVE_INFORMATION

    public static final ClientResponse.Status NON_AUTHORITIVE_INFORMATION

  202 Accepted, see HTTP/1.1 documentation.

### NO_CONTENT

    public static final ClientResponse.Status NO_CONTENT

  204 No Content, see HTTP/1.1 documentation.

### RESET_CONTENT

    public static final ClientResponse.Status RESET_CONTENT

  205 Reset Content, see HTTP/1.1 documentation.

### PARTIAL_CONTENT

    public static final ClientResponse.Status PARTIAL_CONTENT

  206 Reset Content, see HTTP/1.1 documentation.

### MOVED_PERMANENTLY

    public static final ClientResponse.Status MOVED_PERMANENTLY

  301 Moved Permantely, see HTTP/1.1 documentation.

### FOUND

    public static final ClientResponse.Status FOUND

  302 Found, see HTTP/1.1 documentation.

### SEE_OTHER

    public static final ClientResponse.Status SEE_OTHER

  303 See Other, see HTTP/1.1 documentation.

### NOT_MODIFIED

    public static final ClientResponse.Status NOT_MODIFIED

  304 Not Modified, see HTTP/1.1 documentation.

### USE_PROXY

    public static final ClientResponse.Status USE_PROXY

  305 Use Proxy, see HTTP/1.1 documentation.

### TEMPORARY_REDIRECT

    public static final ClientResponse.Status TEMPORARY_REDIRECT

  307 Temporary Redirect, see HTTP/1.1 documentation.

### BAD_REQUEST

    public static final ClientResponse.Status BAD_REQUEST

  400 Bad Request, see HTTP/1.1 documentation.

### UNAUTHORIZED

    public static final ClientResponse.Status UNAUTHORIZED

  401 Unauthorized, see HTTP/1.1 documentation.

### PAYMENT_REQUIRED

    public static final ClientResponse.Status PAYMENT_REQUIRED

  402 Payment Required, see HTTP/1.1 documentation.

### FORBIDDEN

    public static final ClientResponse.Status FORBIDDEN

  403 Forbidden, see HTTP/1.1 documentation.

### NOT_FOUND

    public static final ClientResponse.Status NOT_FOUND

  404 Not Found, see HTTP/1.1 documentation.

### METHOD_NOT_ALLOWED

    public static final ClientResponse.Status METHOD_NOT_ALLOWED

  405 Method Not Allowed, see HTTP/1.1 documentation.

### NOT_ACCEPTABLE

    public static final ClientResponse.Status NOT_ACCEPTABLE

  406 Not Acceptable, see HTTP/1.1 documentation.

### PROXY_AUTHENTICATION_REQUIRED

    public static final ClientResponse.Status PROXY_AUTHENTICATION_REQUIRED

  407 Proxy Authentication Required, see HTTP/1.1 documentation.

### REQUEST_TIMEOUT

    public static final ClientResponse.Status REQUEST_TIMEOUT

  408 Request Timeout, see HTTP/1.1 documentation.

### CONFLICT

    public static final ClientResponse.Status CONFLICT

  409 Conflict, see HTTP/1.1 documentation.

### GONE

    public static final ClientResponse.Status GONE

  410 Gone, see HTTP/1.1 documentation.

### LENGTH_REQUIRED

    public static final ClientResponse.Status LENGTH_REQUIRED

  411 Length Required, see HTTP/1.1 documentation.

### PRECONDITION_FAILED

    public static final ClientResponse.Status PRECONDITION_FAILED

  412 Precondition Failed, see HTTP/1.1 documentation.

### REQUEST_ENTITY_TOO_LARGE

    public static final ClientResponse.Status REQUEST_ENTITY_TOO_LARGE

  413 Request Entity Too Large, see HTTP/1.1 documentation.

### REQUEST_URI_TOO_LONG

    public static final ClientResponse.Status REQUEST_URI_TOO_LONG

  414 Request-URI Too Long, see HTTP/1.1 documentation.

### UNSUPPORTED_MEDIA_TYPE

    public static final ClientResponse.Status UNSUPPORTED_MEDIA_TYPE

  415 Unsupported Media Type, see HTTP/1.1 documentation.

### REQUESTED_RANGE_NOT_SATIFIABLE

    public static final ClientResponse.Status REQUESTED_RANGE_NOT_SATIFIABLE

  416 Requested Range Not Satisfiable, see HTTP/1.1 documentation.

### EXPECTATION_FAILED

    public static final ClientResponse.Status EXPECTATION_FAILED

  417 Expectation Failed, see HTTP/1.1 documentation.

### INTERNAL_SERVER_ERROR

    public static final ClientResponse.Status INTERNAL_SERVER_ERROR

  500 Internal Server Error, see HTTP/1.1 documentation.

### NOT_IMPLEMENTED

    public static final ClientResponse.Status NOT_IMPLEMENTED

  501 Not Implemented, see HTTP/1.1 documentation.

### BAD_GATEWAY

    public static final ClientResponse.Status BAD_GATEWAY

  502 Bad Gateway, see HTTP/1.1 documentation.

### SERVICE_UNAVAILABLE

    public static final ClientResponse.Status SERVICE_UNAVAILABLE

  503 Service Unavailable, see HTTP/1.1 documentation.

### GATEWAY_TIMEOUT

    public static final ClientResponse.Status GATEWAY_TIMEOUT

  504 Gateway Timeout, see HTTP/1.1 documentation.

### HTTP_VERSION_NOT_SUPPORTED

    public static final ClientResponse.Status HTTP_VERSION_NOT_SUPPORTED

  505 HTTP Version Not Supported, see HTTP/1.1 documentation.

Method Detail

### values

    public static ClientResponse.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 (ClientResponse.Status c : ClientResponse.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 ClientResponse.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

### getFamily

    public Response.Status.Family getFamily()

  Get the class of status code.

  Specified by:
    `getFamily` in interface `Response.StatusType`
  Returns:
    the class of status code.

### getStatusCode

    public int getStatusCode()

  Get the associated status code.

  Specified by:
    `getStatusCode` in interface `Response.StatusType`
  Returns:
    the status code

### getReasonPhrase

    public java.lang.String getReasonPhrase()

  Get the reason phrase.

  Specified by:
    `getReasonPhrase` in interface `Response.StatusType`
  Returns:
    the reason phrase.

### toString

    public java.lang.String toString()

  Get the reason phrase.

  Overrides:
    `toString` in class `java.lang.Enum<ClientResponse.Status>`
  Returns:
    the reason phrase.

### fromStatusCode

    public static ClientResponse.Status fromStatusCode(int statusCode)

  Convert a numerical status code into the corresponding Status.

  Parameters:
    `statusCode` - the numerical status code.
  Returns:
    the matching Status or null is no matching Status is defined.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD

Copyright © 2013 Oracle Corporation. All Rights Reserved.