|
Spec-Zone .ru
спецификации, руководства, описания, API
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Response.Status>
javax.ws.rs.core.Response.Status
public static enum Response.Status
Commonly used status codes defined by HTTP, see
for the complete list. Additional status codes can be added by applications
by creating an implementation of Response.StatusType.
| Nested Class Summary | |
|---|---|
static class |
Response.Status.Family
An enumeration representing the class of status code. |
| Enum Constant Summary | |
|---|---|
ACCEPTED
202 Accepted, see . |
|
BAD_REQUEST
400 Bad Request, see . |
|
CONFLICT
409 Conflict, see . |
|
CREATED
201 Created, see . |
|
FORBIDDEN
403 Forbidden, see . |
|
GONE
410 Gone, see . |
|
INTERNAL_SERVER_ERROR
500 Internal Server Error, see . |
|
MOVED_PERMANENTLY
301 Moved Permanently, see . |
|
NO_CONTENT
204 No Content, see . |
|
NOT_ACCEPTABLE
406 Not Acceptable, see . |
|
NOT_FOUND
404 Not Found, see . |
|
NOT_MODIFIED
304 Not Modified, see . |
|
OK
200 OK, see . |
|
PRECONDITION_FAILED
412 Precondition Failed, see . |
|
SEE_OTHER
303 See Other, see . |
|
SERVICE_UNAVAILABLE
503 Service Unavailable, see . |
|
TEMPORARY_REDIRECT
307 Temporary Redirect, see . |
|
UNAUTHORIZED
401 Unauthorized, see . |
|
UNSUPPORTED_MEDIA_TYPE
415 Unsupported Media Type, see . |
|
| Method Summary | |
|---|---|
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 |
java.lang.String |
getReasonPhrase()
Get the reason phrase |
int |
getStatusCode()
Get the associated status code |
java.lang.String |
toString()
Get the reason phrase |
static Response.Status |
valueOf(java.lang.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. |
| 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 |
|---|
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 MOVED_PERMANENTLY
public static final Response.Status SEE_OTHER
public static final Response.Status NOT_MODIFIED
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 FORBIDDEN
public static final Response.Status NOT_FOUND
public static final Response.Status NOT_ACCEPTABLE
public static final Response.Status CONFLICT
public static final Response.Status GONE
public static final Response.Status PRECONDITION_FAILED
public static final Response.Status UNSUPPORTED_MEDIA_TYPE
public static final Response.Status INTERNAL_SERVER_ERROR
public static final Response.Status SERVICE_UNAVAILABLE
| Method Detail |
|---|
public static Response.Status[] values()
for (Response.Status c : Response.Status.values()) System.out.println(c);
public static Response.Status valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic Response.Status.Family getFamily()
getFamily in interface Response.StatusTypepublic int getStatusCode()
getStatusCode in interface Response.StatusTypepublic java.lang.String getReasonPhrase()
getReasonPhrase in interface Response.StatusTypepublic java.lang.String toString()
toString in class java.lang.Enum<Response.Status>public static Response.Status fromStatusCode(int statusCode)
statusCode - the numerical status code
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to
Generated on 10-February-2011 12:41