|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.chain.AbstractExceptionHandler
Invoke the local or global exception handler configured for the exception class that occurred.
Field Summary | |
private java.lang.String |
actionConfigKey
|
private java.lang.String |
exceptionKey
|
private java.lang.String |
forwardConfigKey
|
private static org.apache.commons.logging.Log |
log
|
private java.lang.String |
moduleConfigKey
|
Constructor Summary | |
AbstractExceptionHandler()
|
Method Summary | |
boolean |
execute(org.apache.commons.chain.Context context)
Invoke the appropriate Action for this request, and cache
the returned ActionForward . |
java.lang.String |
getActionConfigKey()
Return the context attribute key under which the ActionConfig for the currently selected application
action is stored. |
java.lang.String |
getExceptionKey()
Return the context attribute key under which any thrown exception will be stored. |
java.lang.String |
getForwardConfigKey()
Return the context attribute key under which the ForwardConfig for the currently selected application
action is stored. |
java.lang.String |
getModuleConfigKey()
Return the context attribute key under which the ModuleConfig for the currently selected application
action is stored. |
protected abstract org.apache.struts.config.ForwardConfig |
handle(org.apache.commons.chain.Context context,
java.lang.Exception exception,
org.apache.struts.config.ExceptionConfig exceptionConfig,
org.apache.struts.config.ActionConfig actionConfig,
org.apache.struts.config.ModuleConfig moduleConfig)
Perform the required handling of the specified exception. |
void |
setActionConfigKey(java.lang.String actionConfigKey)
Set the context attribute key under which the ActionConfig for the currently selected application
action is stored. |
void |
setExceptionKey(java.lang.String exceptionKey)
Set the context attribute key under which any thrown exception will be stored. |
void |
setForwardConfigKey(java.lang.String forwardConfigKey)
Set the context attribute key under which the ForwardConfig for the currently selected application
action is stored. |
void |
setModuleConfigKey(java.lang.String moduleConfigKey)
Set the context attribute key under which the ModuleConfig for the currently selected application
action is 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 actionConfigKey
private java.lang.String exceptionKey
private java.lang.String forwardConfigKey
private java.lang.String moduleConfigKey
private static final org.apache.commons.logging.Log log
Constructor Detail |
public AbstractExceptionHandler()
Method Detail |
public java.lang.String getActionConfigKey()
Return the context attribute key under which the
ActionConfig
for the currently selected application
action is stored.
public void setActionConfigKey(java.lang.String actionConfigKey)
Set the context attribute key under which the
ActionConfig
for the currently selected application
action is stored.
actionConfigKey
- The new context attribute keypublic java.lang.String getExceptionKey()
Return the context attribute key under which any thrown exception will be stored.
public void setExceptionKey(java.lang.String exceptionKey)
Set the context attribute key under which any thrown exception will be stored.
exceptionKey
- The new context attribute keypublic java.lang.String getForwardConfigKey()
Return the context attribute key under which the
ForwardConfig
for the currently selected application
action is stored.
public void setForwardConfigKey(java.lang.String forwardConfigKey)
Set the context attribute key under which the
ForwardConfig
for the currently selected application
action is stored.
forwardConfigKey
- The new context attribute keypublic java.lang.String getModuleConfigKey()
Return the context attribute key under which the
ModuleConfig
for the currently selected application
action is stored.
public void setModuleConfigKey(java.lang.String moduleConfigKey)
Set the context attribute key under which the
ModuleConfig
for the currently selected application
action is stored.
moduleConfigKey
- The new context attribute keypublic boolean execute(org.apache.commons.chain.Context context) throws java.lang.Exception
Invoke the appropriate Action
for this request, and cache
the returned ActionForward
.
execute
in interface org.apache.commons.chain.Command
context
- The Context
for the current request
false
if a ForwardConfig
is returned,
else true
to complete processing
InvalidPathException
- if no valid
action can be identified for this request
java.lang.Exception
protected abstract org.apache.struts.config.ForwardConfig handle(org.apache.commons.chain.Context context, java.lang.Exception exception, org.apache.struts.config.ExceptionConfig exceptionConfig, org.apache.struts.config.ActionConfig actionConfig, org.apache.struts.config.ModuleConfig moduleConfig) throws java.lang.Exception
Perform the required handling of the specified exception.
context
- The Context
for this requestexception
- The exception being handledexceptionConfig
- The corresponding ExceptionConfig
actionConfig
- The ActionConfig
for this requestmoduleConfig
- The ModuleConfig
for this request
ForwardConfig
to be processed next (if any),
or null
if processing has been completed
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |