Re: JSR311: Note on Httpheader.getLanguage() and variants

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Thu, 31 Jul 2008 17:07:42 -0400

On Jul 31, 2008, at 4:56 PM, Bill Burke wrote:

> I saw in 0.9 that getLanguage() now returns a Locale. HTTP 1.1 does
> not require ISO 639 and 3166 defined country codes and using Locale
> basically forces us into using these standards. Maybe go back to
> String? What if a new browser/client version decides to switch to
> 639-3?
IIRC, Locale lets you construct an instance with any language and
country code and doesn't perform a validity check. Did you run into a
specific problem ?


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