public final class VariantSelector extends Object
Modifier and Type | Method and Description |
---|---|
static jakarta.ws.rs.core.Variant |
selectVariant(InboundMessageContext context,
List<jakarta.ws.rs.core.Variant> variants,
org.glassfish.jersey.internal.util.collection.Ref<String> varyHeaderValue)
Select the representation variant that best matches the request.
|
static List<jakarta.ws.rs.core.Variant> |
selectVariants(InboundMessageContext context,
List<jakarta.ws.rs.core.Variant> variants,
org.glassfish.jersey.internal.util.collection.Ref<String> varyHeaderValue)
Select possible representation variants in order in which they best matches the request.
|
public static jakarta.ws.rs.core.Variant selectVariant(InboundMessageContext context, List<jakarta.ws.rs.core.Variant> variants, org.glassfish.jersey.internal.util.collection.Ref<String> varyHeaderValue)
context
- inbound message context.variants
- list of possible variants.varyHeaderValue
- an output reference of vary header value that should be put
into the response Vary header.public static List<jakarta.ws.rs.core.Variant> selectVariants(InboundMessageContext context, List<jakarta.ws.rs.core.Variant> variants, org.glassfish.jersey.internal.util.collection.Ref<String> varyHeaderValue)
context
- inbound message context.variants
- list of possible variants.varyHeaderValue
- an output reference of vary header value that should be put into the response Vary header.Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.