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)
PersistentLocale
SymbolConstants.SUPPORTED_LOCALES
.set
in interface PersistentLocale
public Locale get()
PersistentLocale
get
in interface PersistentLocale
public boolean isSet()
isSet
in interface PersistentLocale
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.