|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LocalizationSetter
Sets the thread's locale given a desired locale. Note that the desired locale is just a hint. It wil try to honor it but there is no guarantee that it will be used as is.
Localization is controlled by theSymbolConstants.SUPPORTED_LOCALES symbol.
| Method Summary | |
|---|---|
boolean |
setLocaleFromLocaleName(String localeName)
Determines if the provided potential locale name (presumably, extracted from a request URL) is a supported locale name. |
void |
setNonPeristentLocaleFromLocaleName(String localeName)
Allows the locale to be set from a specified locale name (which may be narrowed or defaulted to a support locale). |
| Method Detail |
|---|
boolean setLocaleFromLocaleName(String localeName)
ThreadLocale (either
to the provided locale, if supported, or to the default locale). If the locale name is supported, it will also
set the PersistentLocale (which may affect how page and event links are
generated, to persist the selected locale across requests).
Note that locale names are case sensitive.
localeName - name of locale to check (which may be blank or not a locale name)
PersistentLocale was
setvoid setNonPeristentLocaleFromLocaleName(String localeName)
localeName - locale in effect for this request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||