Class DefaultLocaleResolver
java.lang.Object
org.apache.tiles.core.locale.impl.DefaultLocaleResolver
- All Implemented Interfaces:
LocaleResolver
Default implementation of
It tries to take the locale from the session-scoped attribute
LocaleResolver
It tries to take the locale from the session-scoped attribute
LOCALE_KEY
. If it is not found, it returns the
locale included in the request.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The attribute name that is used to store the current locale. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
LOCALE_KEY
The attribute name that is used to store the current locale.- See Also:
-
-
Constructor Details
-
DefaultLocaleResolver
public DefaultLocaleResolver()
-
-
Method Details
-
resolveLocale
Resolves the locale.- Specified by:
resolveLocale
in interfaceLocaleResolver
- Parameters:
request
- The Tiles request object.- Returns:
- The current locale for the current request.
-