Package org.apache.tiles.locale.impl
Class DefaultLocaleResolver
java.lang.Object
org.apache.tiles.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.- Version:
- $Rev: 887725 $ $Date: 2009-12-07 05:02:10 +1100 (Mon, 07 Dec 2009) $
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The attribute name that is used to store the current locale. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolveLocale
(org.apache.tiles.request.Request request) Resolves the locale.
-
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.
-