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.
|
Modifier and Type | Method and Description |
---|---|
static <E> JResponse.JResponseBuilder<E> |
JResponse.ok(E entity,
Variant variant)
Create a new
JResponse.JResponseBuilder that contains a representation. |
B |
JResponse.AJResponseBuilder.variant(Variant variant)
Set representation metadata.
|
Modifier and Type | Method and Description |
---|---|
static <E> JResponse.JResponseBuilder<E> |
JResponse.notAcceptable(java.util.List<Variant> variants)
Create a new
JResponse.JResponseBuilder for a not acceptable response. |
B |
JResponse.AJResponseBuilder.variants(java.util.List<Variant> variants)
Add a Vary header that lists the available variants.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Variant> |
VariantListBuilderImpl.build() |
Modifier and Type | Method and Description |
---|---|
Response.ResponseBuilder |
ResponseBuilderImpl.variant(Variant variant) |
Modifier and Type | Method and Description |
---|---|
Response.ResponseBuilder |
ResponseBuilderImpl.variants(java.util.List<Variant> variants) |
Modifier and Type | Method and Description |
---|---|
Variant |
ContainerRequest.selectVariant(java.util.List<Variant> variants) |
Variant |
AdaptingContainerRequest.selectVariant(java.util.List<Variant> variants) |
Modifier and Type | Method and Description |
---|---|
Variant |
ContainerRequest.selectVariant(java.util.List<Variant> variants) |
Variant |
AdaptingContainerRequest.selectVariant(java.util.List<Variant> variants) |
Modifier and Type | Method and Description |
---|---|
Variant |
Request.selectVariant(java.util.List<Variant> variants)
Select the representation variant that best matches the request.
|
Modifier and Type | Method and Description |
---|---|
abstract java.util.List<Variant> |
Variant.VariantListBuilder.build()
Build a list of representation variants from the current state of
the builder.
|
Modifier and Type | Method and Description |
---|---|
static Response.ResponseBuilder |
Response.ok(java.lang.Object entity,
Variant variant)
Create a new ResponseBuilder that contains a representation.
|
abstract Response.ResponseBuilder |
Response.ResponseBuilder.variant(Variant variant)
Set representation metadata on the ResponseBuilder.
|
Modifier and Type | Method and Description |
---|---|
static Response.ResponseBuilder |
Response.notAcceptable(java.util.List<Variant> variants)
Create a new ResponseBuilder for a not acceptable response.
|
Variant |
Request.selectVariant(java.util.List<Variant> variants)
Select the representation variant that best matches the request.
|
abstract Response.ResponseBuilder |
Response.ResponseBuilder.variants(java.util.List<Variant> variants)
Add a Vary header that lists the available variants.
|
Copyright © 2016 Oracle Corporation. All Rights Reserved.