Class PersistentLocaleImpl
- java.lang.Object
 - 
- org.apache.tapestry5.internal.services.PersistentLocaleImpl
 
 
- 
- All Implemented Interfaces:
 PersistentLocale
public class PersistentLocaleImpl extends Object implements PersistentLocale
 
- 
- 
Constructor Summary
Constructors Constructor Description PersistentLocaleImpl(PerthreadManager perThreadManager, String supportedLocales) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Localeget()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).booleanisSet()voidset(Locale locale)Sets the locale value that will be encoded into the response. 
 - 
 
- 
- 
Constructor Detail
- 
PersistentLocaleImpl
public PersistentLocaleImpl(PerthreadManager perThreadManager, @Symbol("tapestry.supported-locales") String supportedLocales)
 
 - 
 
- 
Method Detail
- 
set
public void set(Locale locale)
Description copied from interface:PersistentLocaleSets the locale value that will be encoded into the response. This must match a locale configured viaSymbolConstants.SUPPORTED_LOCALES.- Specified by:
 setin interfacePersistentLocale
 
- 
get
public Locale get()
Description copied from interface:PersistentLocaleGets 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).- Specified by:
 getin interfacePersistentLocale
 
- 
isSet
public boolean isSet()
- Specified by:
 isSetin interfacePersistentLocale- Returns:
 - true if a locale was present in the request URL; false otherwise.
 
 
 - 
 
 -