public abstract class AbstractGetLocaleCommand extends java.lang.Object implements Command
Abstract base Command implementation for retrieving the
requested Locale from our Context, and storing it under the
context attribute key returned by the localeKey property.
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
localeKey
The context attribute key used to store the
Locale. |
CONTINUE_PROCESSING, PROCESSING_COMPLETE| Constructor and Description |
|---|
AbstractGetLocaleCommand() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(Context context)
Retrieve the
Locale for this request, and store it
under the specified context attribute. |
protected abstract java.util.Locale |
getLocale(Context context)
Retrieve and return the
Locale for this request. |
java.lang.String |
getLocaleKey()
Return the context attribute key under which we will store
the request
Locale. |
void |
setLocaleKey(java.lang.String localeKey)
Set the context attribute key under which we will store
the request
Locale. |
private java.lang.String localeKey
The context attribute key used to store the Locale.
public java.lang.String getLocaleKey()
Return the context attribute key under which we will store
the request Locale.
Locale.public void setLocaleKey(java.lang.String localeKey)
Set the context attribute key under which we will store
the request Locale.
localeKey - The new context attribute keypublic boolean execute(Context context) throws java.lang.Exception
Retrieve the Locale for this request, and store it
under the specified context attribute.