Package | Description |
---|---|
com.sun.jersey.api |
Provides support for responses and exceptions.
|
com.sun.jersey.api.client |
Provides support for client-side communication with HTTP-based
RESTful Web services.
|
com.sun.jersey.api.core |
Provides support for configuration.
|
com.sun.jersey.core.spi.factory |
Provides support for factories of particular component types.
|
com.sun.jersey.spi.container |
Provides support for containers and the web application that manages
resource classes.
|
javax.ws.rs.core |
Low-level interfaces and annotations used to create RESTful service
resources.
|
Modifier and Type | Field and Description |
---|---|
protected Response.StatusType |
JResponse.AJResponseBuilder.statusType
The status type.
|
Modifier and Type | Method and Description |
---|---|
Response.StatusType |
JResponse.getStatusType()
Get the status type associated with the response.
|
protected Response.StatusType |
JResponse.AJResponseBuilder.getStatusType()
Get the status type associated with the response.
|
Modifier and Type | Method and Description |
---|---|
B |
JResponse.AJResponseBuilder.status(Response.StatusType status)
Set the status.
|
static <E> JResponse.JResponseBuilder<E> |
JResponse.status(Response.StatusType status)
Create a new
JResponse.JResponseBuilder with the supplied status. |
Constructor and Description |
---|
JResponse(Response.StatusType statusType,
OutBoundHeaders headers,
E entity)
Construct given a status type, entity and metadata.
|
Modifier and Type | Class and Description |
---|---|
static class |
ClientResponse.Status
Status codes defined by HTTP, see
HTTP/1.1 documentation.
|
Modifier and Type | Method and Description |
---|---|
static Response.StatusType |
Statuses.from(int code)
Create a new
status type from the given code. |
static Response.StatusType |
Statuses.from(int code,
java.lang.String reason)
Creates a new custom
status type initialized from the
status code and reason phrase. |
Response.StatusType |
ClientResponse.getStatusInfo()
Get the
status type . |
Modifier and Type | Method and Description |
---|---|
void |
ClientResponse.setResponseStatus(Response.StatusType status)
Deprecated.
|
void |
ClientResponse.setStatus(Response.StatusType statusType)
Set the
status type . |
Constructor and Description |
---|
ClientResponse(Response.StatusType statusType,
InBoundHeaders headers,
java.io.InputStream entity,
MessageBodyWorkers workers)
Create a new instance initialized form
statusType , headers , entity ,
workers . |
Modifier and Type | Method and Description |
---|---|
Response.StatusType |
HttpResponseContext.getStatusType() |
Modifier and Type | Method and Description |
---|---|
void |
HttpResponseContext.setStatusType(Response.StatusType statusType)
Set the status type of the response.
|
Modifier and Type | Method and Description |
---|---|
Response.StatusType |
ResponseImpl.getStatusType()
Get the status type.
|
static Response.StatusType |
ResponseImpl.toStatusType(int statusCode) |
Modifier and Type | Method and Description |
---|---|
Response.ResponseBuilder |
ResponseBuilderImpl.status(Response.StatusType status) |
Constructor and Description |
---|
ResponseImpl(Response.StatusType statusType,
OutBoundHeaders headers,
java.lang.Object entity,
java.lang.reflect.Type entityType)
Construct given a status type, entity and metadata.
|
Modifier and Type | Method and Description |
---|---|
Response.StatusType |
ContainerResponse.getStatusType() |
Response.StatusType |
AdaptingContainerResponse.getStatusType() |
Modifier and Type | Method and Description |
---|---|
void |
ContainerResponse.setStatusType(Response.StatusType statusType) |
void |
AdaptingContainerResponse.setStatusType(Response.StatusType statusType) |
Modifier and Type | Class and Description |
---|---|
static class |
Response.Status
Commonly used status codes defined by HTTP, see
HTTP/1.1 documentation
for the complete list.
|
Modifier and Type | Method and Description |
---|---|
static Response.ResponseBuilder |
Response.status(Response.StatusType status)
Create a new ResponseBuilder with the supplied status.
|
Response.ResponseBuilder |
Response.ResponseBuilder.status(Response.StatusType status)
Set the status on the ResponseBuilder.
|
Copyright © 2016 Oracle Corporation. All Rights Reserved.