On Feb 27, 2008, at 8:59 PM, Bill Burke wrote:
> I don't understand why this method exists:
>
> ResponseBuilder.variants(List<Variant> variants);
>
> The Response has to choose what its Variant is doesn't it? I mean,
> the response MUST have a chosen content-type (for example).
>
> I thought variants were really for request processing, not the
> response.
>
That method is used by the implementation of Response.notAcceptable.
IIRC it is used to set the contents of the Vary header from the
supplied list.
Marc.
>
> ResponseBuilder.variant(Variant) does make sense to me as you want
> to the:
>
> CONTENT-TYPE
> CONTENT-LANGUAGE
> CONTENT-ENCODING
>
> Thanks
>
> --
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jsr311.dev.java.net
> For additional commands, e-mail: dev-help_at_jsr311.dev.java.net
>
---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.