Command
PortletSetLocaleCommand
, ServletSetLocaleCommand
public abstract class AbstractSetLocaleCommand extends java.lang.Object implements Command
Abstract base Command
implementation for setting the
response locale for this response to the Locale
stored
under the context attribute key returned by the localeKey
property.
Modifier and Type | Field | Description |
---|---|---|
private java.lang.String |
localeKey |
The context attribute key used to retrieve the
Locale . |
CONTINUE_PROCESSING, PROCESSING_COMPLETE
Constructor | Description |
---|---|
AbstractSetLocaleCommand() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
execute(Context context) |
Retrieve the
Locale stored under the specified
context attribute key, and establish it on this response. |
java.lang.String |
getLocaleKey() |
Return the context attribute key under which we will retrieve
the response
Locale . |
protected abstract void |
setLocale(Context context,
java.util.Locale locale) |
Establish the specified
Locale for this response. |
void |
setLocaleKey(java.lang.String localeKey) |
Set the context attribute key under which we will retrieve
the response
Locale . |
private java.lang.String localeKey
The context attribute key used to retrieve the Locale
.
public java.lang.String getLocaleKey()
Return the context attribute key under which we will retrieve
the response Locale
.
Locale
.public void setLocaleKey(java.lang.String localeKey)
Set the context attribute key under which we will retrieve
the response Locale
.
localeKey
- The new context attribute keypublic boolean execute(Context context) throws java.lang.Exception
Retrieve the Locale
stored under the specified
context attribute key, and establish it on this response.