Package | Description |
---|---|
com.sun.jersey.api |
Provides support for responses and exceptions.
|
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.
|
javax.ws.rs.ext |
APIs that provide extensions to the types supported by the JAX-RS API.
|
Modifier and Type | Method and Description |
---|---|
static Response.ResponseBuilder |
Responses.clientError() |
static Response.ResponseBuilder |
Responses.conflict() |
static Response.ResponseBuilder |
Responses.methodNotAllowed() |
static Response.ResponseBuilder |
Responses.noContent() |
static Response.ResponseBuilder |
Responses.notAcceptable() |
static Response.ResponseBuilder |
Responses.notFound() |
static Response.ResponseBuilder |
Responses.notModified() |
static Response.ResponseBuilder |
Responses.preconditionFailed() |
static Response.ResponseBuilder |
Responses.unsupportedMediaType() |
Modifier and Type | Class and Description |
---|---|
class |
ResponseBuilderImpl
An implementation of
Response.ResponseBuilder . |
Modifier and Type | Method and Description |
---|---|
Response.ResponseBuilder |
ResponseBuilderImpl.cacheControl(CacheControl cacheControl) |
Response.ResponseBuilder |
ResponseBuilderImpl.clone() |
Response.ResponseBuilder |
ResponseBuilderImpl.contentLocation(java.net.URI location) |
Response.ResponseBuilder |
ResponseBuilderImpl.cookie(NewCookie... cookies) |
Response.ResponseBuilder |
AbstractRuntimeDelegate.createResponseBuilder() |
Response.ResponseBuilder |
ResponseBuilderImpl.encoding(java.lang.String encoding) |
Response.ResponseBuilder |
ResponseBuilderImpl.entity(java.lang.Object entity) |
Response.ResponseBuilder |
ResponseBuilderImpl.entityWithType(java.lang.Object entity,
java.lang.reflect.Type entityType) |
Response.ResponseBuilder |
ResponseBuilderImpl.expires(java.util.Date expires) |
Response.ResponseBuilder |
ResponseBuilderImpl.header(java.lang.String name,
java.lang.Object value) |
Response.ResponseBuilder |
ResponseBuilderImpl.header(java.lang.String name,
java.lang.Object value,
boolean single) |
Response.ResponseBuilder |
ResponseBuilderImpl.headerSingle(java.lang.String name,
java.lang.Object value) |
Response.ResponseBuilder |
ResponseBuilderImpl.language(java.util.Locale language) |
Response.ResponseBuilder |
ResponseBuilderImpl.language(java.lang.String language) |
Response.ResponseBuilder |
ResponseBuilderImpl.lastModified(java.util.Date lastModified) |
Response.ResponseBuilder |
ResponseBuilderImpl.location(java.net.URI location) |
Response.ResponseBuilder |
ResponseBuilderImpl.status(int status) |
Response.ResponseBuilder |
ResponseBuilderImpl.status(Response.StatusType status) |
Response.ResponseBuilder |
ResponseBuilderImpl.tag(EntityTag tag) |
Response.ResponseBuilder |
ResponseBuilderImpl.tag(java.lang.String tag) |
Response.ResponseBuilder |
ResponseBuilderImpl.type(MediaType type) |
Response.ResponseBuilder |
ResponseBuilderImpl.type(java.lang.String type) |
Response.ResponseBuilder |
ResponseBuilderImpl.variant(Variant variant) |
Response.ResponseBuilder |
ResponseBuilderImpl.variants(java.util.List<Variant> variants) |
Modifier and Type | Method and Description |
---|---|
Response.ResponseBuilder |
ContainerRequest.evaluatePreconditions() |
Response.ResponseBuilder |
AdaptingContainerRequest.evaluatePreconditions() |
Response.ResponseBuilder |
ContainerRequest.evaluatePreconditions(java.util.Date lastModified) |
Response.ResponseBuilder |
AdaptingContainerRequest.evaluatePreconditions(java.util.Date lastModified) |
Response.ResponseBuilder |
ContainerRequest.evaluatePreconditions(java.util.Date lastModified,
EntityTag eTag) |
Response.ResponseBuilder |
AdaptingContainerRequest.evaluatePreconditions(java.util.Date lastModified,
EntityTag eTag) |
Response.ResponseBuilder |
ContainerRequest.evaluatePreconditions(EntityTag eTag) |
Response.ResponseBuilder |
AdaptingContainerRequest.evaluatePreconditions(EntityTag eTag) |
Modifier and Type | Method and Description |
---|---|
abstract Response.ResponseBuilder |
Response.ResponseBuilder.cacheControl(CacheControl cacheControl)
Set the cache control data on the ResponseBuilder.
|
abstract Response.ResponseBuilder |
Response.ResponseBuilder.clone()
Create a copy of the ResponseBuilder preserving its state.
|
abstract Response.ResponseBuilder |
Response.ResponseBuilder.contentLocation(java.net.URI location)
Set the content location on the ResponseBuilder.
|
abstract Response.ResponseBuilder |
Response.ResponseBuilder.cookie(NewCookie... cookies)
Add cookies to the ResponseBuilder.
|
static Response.ResponseBuilder |
Response.created(java.net.URI location)
Create a new ResponseBuilder for a created resource, set the location
header using the supplied value.
|
abstract Response.ResponseBuilder |
Response.ResponseBuilder.entity(java.lang.Object entity)
Set the entity on the ResponseBuilder.
|
Response.ResponseBuilder |
Request.evaluatePreconditions()
Evaluate request preconditions for a resource that does not currently
exist.
|
Response.ResponseBuilder |
Request.evaluatePreconditions(java.util.Date lastModified)
Evaluate request preconditions based on the passed in value.
|
Response.ResponseBuilder |
Request.evaluatePreconditions(java.util.Date lastModified,
EntityTag eTag)
Evaluate request preconditions based on the passed in value.
|
Response.ResponseBuilder |
Request.evaluatePreconditions(EntityTag eTag)
Evaluate request preconditions based on the passed in value.
|
abstract Response.ResponseBuilder |
Response.ResponseBuilder.expires(java.util.Date expires)
Set the expires date on the ResponseBuilder.
|
static Response.ResponseBuilder |
Response.fromResponse(Response response)
Create a new ResponseBuilder by performing a shallow copy of an
existing Response.
|
abstract Response.ResponseBuilder |
Response.ResponseBuilder.header(java.lang.String name,
java.lang.Object value)
Add a header to the ResponseBuilder.
|
abstract Response.ResponseBuilder |
Response.ResponseBuilder.language(java.util.Locale language)
Set the language on the ResponseBuilder.
|
abstract Response.ResponseBuilder |
Response.ResponseBuilder.language(java.lang.String language)
Set the language on the ResponseBuilder.
|
abstract Response.ResponseBuilder |
Response.ResponseBuilder.lastModified(java.util.Date lastModified)
Set the last modified date on the ResponseBuilder.
|
abstract Response.ResponseBuilder |
Response.ResponseBuilder.location(java.net.URI location)
Set the location on the ResponseBuilder.
|
protected static Response.ResponseBuilder |
Response.ResponseBuilder.newInstance()
Create a new builder instance.
|
static Response.ResponseBuilder |
Response.noContent()
Create a new ResponseBuilder for an empty response.
|
static Response.ResponseBuilder |
Response.notAcceptable(java.util.List<Variant> variants)
Create a new ResponseBuilder for a not acceptable response.
|
static Response.ResponseBuilder |
Response.notModified()
Create a new ResponseBuilder with a not-modified status.
|
static Response.ResponseBuilder |
Response.notModified(EntityTag tag)
Create a new ResponseBuilder with a not-modified status.
|
static Response.ResponseBuilder |
Response.notModified(java.lang.String tag)
Create a new ResponseBuilder with a not-modified status
and a strong entity tag.
|
static Response.ResponseBuilder |
Response.ok()
Create a new ResponseBuilder with an OK status.
|
static Response.ResponseBuilder |
Response.ok(java.lang.Object entity)
Create a new ResponseBuilder that contains a representation.
|
static Response.ResponseBuilder |
Response.ok(java.lang.Object entity,
MediaType type)
Create a new ResponseBuilder that contains a representation.
|
static Response.ResponseBuilder |
Response.ok(java.lang.Object entity,
java.lang.String type)
Create a new ResponseBuilder that contains a representation.
|
static Response.ResponseBuilder |
Response.ok(java.lang.Object entity,
Variant variant)
Create a new ResponseBuilder that contains a representation.
|
static Response.ResponseBuilder |
Response.seeOther(java.net.URI location)
Create a new ResponseBuilder for a redirection.
|
static Response.ResponseBuilder |
Response.serverError()
Create a new ResponseBuilder with an server error status.
|
static Response.ResponseBuilder |
Response.status(int status)
Create a new ResponseBuilder with the supplied status.
|
abstract Response.ResponseBuilder |
Response.ResponseBuilder.status(int status)
Set the status on the ResponseBuilder.
|
static Response.ResponseBuilder |
Response.status(Response.Status status)
Create a new ResponseBuilder with the supplied status.
|
Response.ResponseBuilder |
Response.ResponseBuilder.status(Response.Status status)
Set the status on the ResponseBuilder.
|
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.
|
abstract Response.ResponseBuilder |
Response.ResponseBuilder.tag(EntityTag tag)
Set an entity tag on the ResponseBuilder.
|
abstract Response.ResponseBuilder |
Response.ResponseBuilder.tag(java.lang.String tag)
Set a strong entity tag on the ResponseBuilder.
|
static Response.ResponseBuilder |
Response.temporaryRedirect(java.net.URI location)
Create a new ResponseBuilder for a temporary redirection.
|
abstract Response.ResponseBuilder |
Response.ResponseBuilder.type(MediaType type)
Set the response media type on the ResponseBuilder.
|
abstract Response.ResponseBuilder |
Response.ResponseBuilder.type(java.lang.String type)
Set the response media type on the ResponseBuilder.
|
abstract Response.ResponseBuilder |
Response.ResponseBuilder.variant(Variant variant)
Set representation metadata on the ResponseBuilder.
|
abstract Response.ResponseBuilder |
Response.ResponseBuilder.variants(java.util.List<Variant> variants)
Add a Vary header that lists the available variants.
|
Modifier and Type | Method and Description |
---|---|
abstract Response.ResponseBuilder |
RuntimeDelegate.createResponseBuilder()
Create a new instance of a
Response.ResponseBuilder . |
Copyright © 2016 Oracle Corporation. All Rights Reserved.