Class PersistentLocaleImpl
java.lang.Object
org.apache.tapestry5.internal.services.PersistentLocaleImpl
- All Implemented Interfaces:
PersistentLocale
-
Constructor Summary
ConstructorsConstructorDescriptionPersistentLocaleImpl
(PerthreadManager perThreadManager, String supportedLocales) -
Method Summary
Modifier and TypeMethodDescriptionget()
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
Sets the locale value that will be encoded into the response.
-
Constructor Details
-
PersistentLocaleImpl
public PersistentLocaleImpl(PerthreadManager perThreadManager, @Symbol("tapestry.supported-locales") String supportedLocales)
-
-
Method Details
-
set
Description copied from interface:PersistentLocale
Sets the locale value that will be encoded into the response. This must match a locale configured viaSymbolConstants.SUPPORTED_LOCALES
.- Specified by:
set
in interfacePersistentLocale
-
get
Description copied from interface:PersistentLocale
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).- Specified by:
get
in interfacePersistentLocale
-
isSet
- Specified by:
isSet
in interfacePersistentLocale
- Returns:
- true if a locale was present in the request URL; false otherwise.
-