Home » Struts-1.3.10 » org.apache.struts » chain » [javadoc | source]
org.apache.struts.chain
abstract public class: AbstractExceptionHandler [javadoc | source]
java.lang.Object
   org.apache.struts.chain.AbstractExceptionHandler

All Implemented Interfaces:
    org.apache.commons.chain.Command

Direct Known Subclasses:
    ExceptionHandler

Invoke the local or global exception handler configured for the exception class that occurred.

Method from org.apache.struts.chain.AbstractExceptionHandler Summary:
execute,   getActionConfigKey,   getExceptionKey,   getForwardConfigKey,   getModuleConfigKey,   handle,   setActionConfigKey,   setExceptionKey,   setForwardConfigKey,   setModuleConfigKey
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.struts.chain.AbstractExceptionHandler Detail:
 public boolean execute(Context context) throws Exception 

    Invoke the appropriate Action for this request, and cache the returned ActionForward.

 public String getActionConfigKey() 

    Return the context attribute key under which the ActionConfig for the currently selected application action is stored.

 public String getExceptionKey() 

    Return the context attribute key under which any thrown exception will be stored.

 public String getForwardConfigKey() 

    Return the context attribute key under which the ForwardConfig for the currently selected application action is stored.

 public String getModuleConfigKey() 

    Return the context attribute key under which the ModuleConfig for the currently selected application action is stored.

 abstract protected ForwardConfig handle(Context context,
    Exception exception,
    ExceptionConfig exceptionConfig,
    ActionConfig actionConfig,
    ModuleConfig moduleConfig) throws Exception

    Perform the required handling of the specified exception.

 public  void setActionConfigKey(String actionConfigKey) 

    Set the context attribute key under which the ActionConfig for the currently selected application action is stored.

 public  void setExceptionKey(String exceptionKey) 

    Set the context attribute key under which any thrown exception will be stored.

 public  void setForwardConfigKey(String forwardConfigKey) 

    Set the context attribute key under which the ForwardConfig for the currently selected application action is stored.

 public  void setModuleConfigKey(String moduleConfigKey) 

    Set the context attribute key under which the ModuleConfig for the currently selected application action is stored.