public class PersistentLocaleImpl extends Object implements PersistentLocale
| Constructor and Description |
|---|
PersistentLocaleImpl(PerthreadManager perThreadManager,
String supportedLocales) |
| Modifier and Type | Method and Description |
|---|---|
Locale |
get()
Gets the locale obtained from the request, or null if the response did not indicate a specific locale (in which
case the active locale may have been determined from request headers).
|
boolean |
isSet() |
void |
set(Locale locale)
Sets the locale value that will be encoded into the response.
|
public PersistentLocaleImpl(PerthreadManager perThreadManager, @Symbol(value="tapestry.supported-locales") String supportedLocales)
public void set(Locale locale)
PersistentLocaleSymbolConstants.SUPPORTED_LOCALES.set in interface PersistentLocalepublic Locale get()
PersistentLocaleget in interface PersistentLocalepublic boolean isSet()
isSet in interface PersistentLocale5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.