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.
|
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.Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.