|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.chain.web.AbstractSetLocaleCommand
public abstract class AbstractSetLocaleCommand
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.
| Field Summary | |
|---|---|
private java.lang.String |
localeKey
The context attribute key used to retrieve the Locale. |
| Fields inherited from interface org.apache.commons.chain.Command |
|---|
CONTINUE_PROCESSING, PROCESSING_COMPLETE |
| Constructor Summary | |
|---|---|
AbstractSetLocaleCommand()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String localeKey
The context attribute key used to retrieve the Locale.
| Constructor Detail |
|---|
public AbstractSetLocaleCommand()
| Method Detail |
|---|
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 key
public boolean execute(Context context)
throws java.lang.Exception
Retrieve the Locale stored under the specified
context attribute key, and establish it on this response.
execute in interface Commandcontext - The Context we are operating on
false so that processng will continue
java.lang.Exception - If an error occurs during execution.
protected abstract void setLocale(Context context,
java.util.Locale locale)
Establish the specified Locale for this response.
context - The Context we are operating on.locale - The Locale for the request.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||