Class AbstractGetLocaleCommand
java.lang.Object
org.apache.commons.chain.web.AbstractGetLocaleCommand
- All Implemented Interfaces:
Command
- Direct Known Subclasses:
PortletGetLocaleCommand, ServletGetLocaleCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe context attribute key used to store theLocale.Fields inherited from interface Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieve theLocalefor this request, and store it under the specified context attribute.protected abstract LocaleRetrieve and return theLocalefor this request.Return the context attribute key under which we will store the requestLocale.voidsetLocaleKey(String localeKey) Set the context attribute key under which we will store the requestLocale.
-
Field Details
-
localeKey
The context attribute key used to store the
Locale.
-
-
Constructor Details
-
AbstractGetLocaleCommand
public AbstractGetLocaleCommand()
-
-
Method Details
-
getLocaleKey
Return the context attribute key under which we will store the request
Locale.- Returns:
- The context attribute key of the request
Locale.
-
setLocaleKey
Set the context attribute key under which we will store the request
Locale.- Parameters:
localeKey- The new context attribute key
-
execute
Retrieve the
Localefor this request, and store it under the specified context attribute. -
getLocale
-