|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.chain.AbstractSelectLocale
Select the Locale
to be used for this request.
Field Summary | |
private java.lang.String |
localeKey
|
private java.lang.String |
moduleConfigKey
|
Constructor Summary | |
AbstractSelectLocale()
|
Method Summary | |
boolean |
execute(org.apache.commons.chain.Context context)
Select the Locale to be used for this request. |
protected abstract java.util.Locale |
getLocale(org.apache.commons.chain.Context context)
Return the Locale to be used for this request. |
java.lang.String |
getLocaleKey()
Return the context attribute key under which the Locale for the current request is stored. |
java.lang.String |
getModuleConfigKey()
Return the context attribute key under which the ModuleConfig for the currently selected application
module will be stored. |
void |
setLocaleKey(java.lang.String localeKey)
Set the context attribute key under which the Locale for the current request is stored. |
void |
setModuleConfigKey(java.lang.String moduleConfigKey)
Set the context attribute key under which the ModuleConfig for the currently selected application
module will be stored. |
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
private java.lang.String moduleConfigKey
Constructor Detail |
public AbstractSelectLocale()
Method Detail |
public java.lang.String getLocaleKey()
Return the context attribute key under which the
Locale
for the current request is stored.
public void setLocaleKey(java.lang.String localeKey)
Set the context attribute key under which the
Locale
for the current request is stored.
localeKey
- The new context attribute keypublic java.lang.String getModuleConfigKey()
Return the context attribute key under which the
ModuleConfig
for the currently selected application
module will be stored.
public void setModuleConfigKey(java.lang.String moduleConfigKey)
Set the context attribute key under which the
ModuleConfig
for the currently selected application
module will be stored.
moduleConfigKey
- The new context attribute keypublic boolean execute(org.apache.commons.chain.Context context) throws java.lang.Exception
Select the Locale
to be used for this request.
execute
in interface org.apache.commons.chain.Command
context
- The Context
for the current request
false
so that processing continues
java.lang.Exception
protected abstract java.util.Locale getLocale(org.apache.commons.chain.Context context)
Return the Locale
to be used for this request.
context
- The Context
for this request
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |