users@jsr311.java.net

Re: When to sort Accept header values

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Wed, 04 Feb 2009 11:29:55 -0500

On Feb 4, 2009, at 11:17 AM, Sergey Beryozkin wrote:
>
> As I said clients are writing their applications against targeted
> applications. It's the browsers which create those uber-complex
> accept values. As far as ordinary clients are concerned, I'm not
> certain they will fare better with application/json,application/
> xml;q=0.8 when sending requests to some dynamic resources they
> didn't hear before about than with application/json,application/xml.
>
I'm confused now, if a client includes quality params in the Accept
and the resource class has methods that produce the most preferred
type then that will be returned. Are you saying that isn't the case ?

Marc.

---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.