users@jsr311.java.net

Re: When to sort Accept header values

From: Sergey Beryozkin <sberyoz_at_progress.com>
Date: Wed, 4 Feb 2009 17:43:47 -0000

Hi Marc

>
>> given that a client is not guaranteed to get the right format from a
>> non JAXRS server, irrespectively of whether quality params are
>> included or not
>>
> I don't understand the last statement, if the server supports serve-
> driven conneg then it should respond accordingly.

Having such a compliant server reply with JSON when

Accept : application/xml, application/json

but with XML when

Accept : application/xml, application/json;q=0.1

seems lame :-)

RI will reply with XML which seems perfectly normal to me and I'm not sure anyone will complain

Cheers, Sergey

>
> 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
>