Package | Description |
---|---|
javax.ws.rs.core |
Low-level interfaces and annotations used to create RESTful service
resources.
|
Modifier and Type | Method | Description |
---|---|---|
Variant |
Request.selectVariant(List<Variant> variants) |
Select the representation variant that best matches the request.
|
Modifier and Type | Method | Description |
---|---|---|
abstract List<Variant> |
Variant.VariantListBuilder.build() |
Build a list of representation variants from the current state of
the builder.
|
Modifier and Type | Method | Description |
---|---|---|
static Response.ResponseBuilder |
Response.ok(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 | Description |
---|---|---|
static Response.ResponseBuilder |
Response.notAcceptable(List<Variant> variants) |
Create a new ResponseBuilder for a not acceptable response.
|
Variant |
Request.selectVariant(List<Variant> variants) |
Select the representation variant that best matches the request.
|
abstract Response.ResponseBuilder |
Response.ResponseBuilder.variants(List<Variant> variants) |
Add a Vary header that lists the available variants.
|
Copyright © 2019 Sun Microsystems, Inc. All rights reserved.