|
Oracle® Globalization Development Kit Java API Reference 10g Release 1(10.1) B10971-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.i18n.servlet.localesource.LocaleSource | +--oracle.i18n.servlet.localesource.HttpAcceptLanguage
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.
Nested Class Summary |
Nested classes inherited from class oracle.i18n.servlet.localesource.LocaleSource |
LocaleSource.Alignment, LocaleSource.Parameter, LocaleSource.WritingDirection |
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, load, setAttribute, setCharacterSet, setCollator, setCurrencyFormat, setDateFormat, setDateTimeFormat, setISOCurrency, setLocale, setLocale, setLocaleSourceClass, setNumberFormat, setTimeFormat, setTimeZone, setWritingDirection, store |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
|
Oracle® Globalization Development Kit Java API Reference 10g Release 1(10.1) B10971-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |