public abstract class AbstractSetLocaleCommand extends 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.
CONTINUE_PROCESSING, PROCESSING_COMPLETE
Constructor and Description |
---|
AbstractSetLocaleCommand() |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(Context context)
Retrieve the
Locale stored under the specified
context attribute key, and establish it on this response. |
String |
getLocaleKey()
Return the context attribute key under which we will retrieve
the response
Locale . |
protected abstract void |
setLocale(Context context,
Locale locale)
Establish the specified
Locale for this response. |
void |
setLocaleKey(String localeKey)
Set the context attribute key under which we will retrieve
the response
Locale . |
public String getLocaleKey()
Return the context attribute key under which we will retrieve
the response Locale
.
Locale
.public void setLocaleKey(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 Exception
Retrieve the Locale
stored under the specified
context attribute key, and establish it on this response.
Copyright © 2003–2021 The Apache Software Foundation. All rights reserved.