Thanks...
----- Original Message -----
From: "Marc Hadley" <Marc.Hadley_at_Sun.COM>
To: <users_at_jsr311.dev.java.net>
Sent: Monday, March 10, 2008 4:55 PM
Subject: Re: Variants
> On Mar 10, 2008, at 12:26 PM, Sergey Beryozkin wrote:
>>
>> I'd like to ask a question about variants.
>>
>> Specifically, ResponseBuilder has this method :
>>
>> variants(List<Variant> variants);
>>
>> Can someone please explain how a response will look like on the wire
>> as a result ?
>>
>> I've seen that 406 code is used and that Vary header is added, but
>> it's not clear how this Vary header should
>> look like in the presense of multiple Variants. Perhaps this
>> question is off-topic as it's more a HTTP specific question...
>>
> IIRC, the Vary header lists the headers that determine the response
> format. So if variants contained a list with several different media
> types then the vary header would list Accept as one of the headers
> that whose value can be varied to get a different response.
>
> Marc.
>
> ---
> Marc Hadley <marc.hadley at sun.com>
> CTO Office, Sun Microsystems.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jsr311.dev.java.net
> For additional commands, e-mail: users-help_at_jsr311.dev.java.net
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland