public final class VariantSelector extends Object
| Modifier and Type | Method and Description |
|---|---|
static Variant |
selectVariant(InboundMessageContext context,
List<Variant> variants,
Ref<String> varyHeaderValue)
Select the representation variant that best matches the request.
|
static List<Variant> |
selectVariants(InboundMessageContext context,
List<Variant> variants,
Ref<String> varyHeaderValue)
Select possible representation variants in order in which they best matches the request.
|
public static Variant selectVariant(InboundMessageContext context, List<Variant> variants, 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<Variant> selectVariants(InboundMessageContext context, List<Variant> variants, 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-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.