dev@jsr311.java.net

Re: JSR311: HttpHeaders.getAcceptableLanguages is pretty useless

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Fri, 01 Aug 2008 08:30:09 -0400

On Aug 1, 2008, at 4:59 AM, Paul Sandoz wrote:

> Bill Burke wrote:
>> The getAcceptableLanguages methods in HttpHeaders are pretty
>> useless. Why? Well there's no qualifier information.
>> Accept-Language: en-us,en;q=0.5
>> What use is a list of languages if you don't know the preferences?
>
> We need to specify that the returned list must be ordered according
> to the quality parameter, with highest quality first (same for
> getAcceptableMediaTypes).
>
+1, I thought it already said that but I guess not. One more for the
TODO list.

Marc.

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