Uses of Class
javax.ws.rs.core.Variant
Packages that use Variant
Package
Description
The JAX-RS client API
Low-level interfaces and annotations used to create RESTful service
resources.
-
Uses of Variant in javax.ws.rs.client
Fields in javax.ws.rs.client declared as VariantMethods in javax.ws.rs.client that return VariantMethods in javax.ws.rs.client with parameters of type VariantModifier and TypeMethodDescriptionstatic <T> Entity
<T> Create an entity using a supplied content media type.static <T> Entity
<T> Entity.entity
(T entity, Variant variant, Annotation[] annotations) Create an entity using a supplied content media type.Constructors in javax.ws.rs.client with parameters of type Variant -
Uses of Variant in javax.ws.rs.core
Methods in javax.ws.rs.core that return VariantModifier and TypeMethodDescriptionRequest.selectVariant
(List<Variant> variants) Select the representation variant that best matches the request.Methods in javax.ws.rs.core that return types with arguments of type VariantModifier and TypeMethodDescriptionVariant.VariantListBuilder.build()
Add the current combination of metadata to the list of supported variants (provided the current combination of metadata is not empty) and build a list of representation variants from the current state of the builder.Methods in javax.ws.rs.core with parameters of type VariantModifier and TypeMethodDescriptionstatic Response.ResponseBuilder
Create a new ResponseBuilder that contains a representation.abstract Response.ResponseBuilder
Set message entity representation metadata.abstract Response.ResponseBuilder
Add a Vary header that lists the available variants.Method parameters in javax.ws.rs.core with type arguments of type VariantModifier and TypeMethodDescriptionstatic Response.ResponseBuilder
Response.notAcceptable
(List<Variant> variants) Create a new ResponseBuilder for a not acceptable response.Request.selectVariant
(List<Variant> variants) Select the representation variant that best matches the request.abstract Response.ResponseBuilder
Add a Vary header that lists the available variants.