Uses of Class
jakarta.ws.rs.core.Variant
-
Packages that use Variant Package Description jakarta.ws.rs.client The JAX-RS client APIjakarta.ws.rs.core Low-level interfaces and annotations used to create RESTful service resources. -
-
Uses of Variant in jakarta.ws.rs.client
Fields in jakarta.ws.rs.client declared as Variant Modifier and Type Field Description private Variant
Entity. variant
Methods in jakarta.ws.rs.client that return Variant Modifier and Type Method Description Variant
Entity. getVariant()
Get entityvariant
information.Methods in jakarta.ws.rs.client with parameters of type Variant Modifier and Type Method Description static <T> Entity<T>
Entity. entity(T entity, Variant variant)
Create an entity using a supplied content media type.static <T> Entity<T>
Entity. entity(T entity, Variant variant, java.lang.annotation.Annotation[] annotations)
Create an entity using a supplied content media type.Constructors in jakarta.ws.rs.client with parameters of type Variant Constructor Description Entity(T entity, Variant variant)
Entity(T entity, Variant variant, java.lang.annotation.Annotation[] annotations)
-
Uses of Variant in jakarta.ws.rs.core
Methods in jakarta.ws.rs.core that return Variant Modifier and Type Method Description Variant
Request. selectVariant(java.util.List<Variant> variants)
Select the representation variant that best matches the request.Methods in jakarta.ws.rs.core that return types with arguments of type Variant Modifier and Type Method Description abstract java.util.List<Variant>
Variant.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 jakarta.ws.rs.core with parameters of type Variant Modifier and Type Method 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 message entity representation metadata.abstract Response.ResponseBuilder
Response.ResponseBuilder. variants(Variant... variants)
Add a Vary header that lists the available variants.Method parameters in jakarta.ws.rs.core with type arguments of type Variant Modifier and Type Method 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.
-