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