oracle.i18n.servlet.localesource
Class HttpAcceptLanguage
java.lang.Object
|
+--oracle.i18n.servlet.localesource.LocaleSource
|
+--oracle.i18n.servlet.localesource.HttpAcceptLanguage
- All Implemented Interfaces:
- Serializable
- public class HttpAcceptLanguage
- extends LocaleSource
HttpAcceptLanguage
is a locale source class that carries the
language preference of the web client
On each request, the language preferences of the web client is conveyed by
Accept-Language
item in the HTTP header. The language
preferences can be multiple locales. For example, when the client sets the
language preferences to French, English, German, and Japanese in this
order, Accept-Language
value would be as follows:
Accept-Language: en;q=0.9, fr;q=1.0, de, ja
Considering the locales supported by the application,
HttpAcceptLanguage
object is instantiated with this value to
determine the current user locale. In above example, if the supported
locales are en
and ja
, the user locale is
determined to en
, since fr
and de
are not supported by the application and en
has the largest
weight.
- Since:
- 10.1.1
- See Also:
- Serialized Form
Methods inherited from class oracle.i18n.servlet.localesource.LocaleSource |
equals, getAttribute, getCharacterSet, getCollator, getCurrencyFormat, getDateFormat, getDateTimeFormat, getISOCurrency, getLocale, getLocaleSourceClass, getNumberFormat, getTimeFormat, getTimeZone, getWritingDirection, hashCode, isCached, isReadOnly, isValidated, load, setAttribute, setCharacterSet, setCollator, setCurrencyFormat, setDateFormat, setDateTimeFormat, setISOCurrency, setLocale, setLocale, setLocaleSourceClass, setNumberFormat, setTimeFormat, setTimeZone, setWritingDirection, store |
Copyright © 2003 Oracle Corporation. All Rights Reserved.