org.apache.struts.chain.servlet
Class ExceptionHandler

java.lang.Object
  extended byorg.apache.struts.chain.AbstractExceptionHandler
      extended byorg.apache.struts.chain.servlet.ExceptionHandler
All Implemented Interfaces:
org.apache.commons.chain.Command

public class ExceptionHandler
extends AbstractExceptionHandler

Handle the specified exception.

Version:
$Rev: 54933 $ $Date: 2004-10-16 18:04:52 +0100 (Sat, 16 Oct 2004) $

Field Summary
private  java.lang.String actionFormKey
           
private static org.apache.commons.logging.Log log
           
 
Fields inherited from class org.apache.struts.chain.AbstractExceptionHandler
 
Constructor Summary
ExceptionHandler()
           
 
Method Summary
 java.lang.String getActionFormKey()
          Return the context attribute key under which the ActionForm for the currently selected application action is stored.
protected  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 setActionFormKey(java.lang.String actionFormKey)
          Set the context attribute key under which the ActionForm for the currently selected application action is stored.
 
Methods inherited from class org.apache.struts.chain.AbstractExceptionHandler
execute, getActionConfigKey, getExceptionKey, getForwardConfigKey, getModuleConfigKey, setActionConfigKey, setExceptionKey, setForwardConfigKey, setModuleConfigKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

actionFormKey

private java.lang.String actionFormKey

log

private static final org.apache.commons.logging.Log log
Constructor Detail

ExceptionHandler

public ExceptionHandler()
Method Detail

getActionFormKey

public java.lang.String getActionFormKey()

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


setActionFormKey

public void setActionFormKey(java.lang.String actionFormKey)

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

Parameters:
actionFormKey - The new context attribute key

handle

protected 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
Description copied from class: AbstractExceptionHandler

Perform the required handling of the specified exception.

Specified by:
handle in class AbstractExceptionHandler
Parameters:
context - The Context for this request
exception - The exception being handled
exceptionConfig - The corresponding ExceptionConfig
actionConfig - The ActionConfig for this request
moduleConfig - The ModuleConfig for this request
Returns:
the ForwardConfig to be processed next (if any), or null if processing has been completed
Throws:
java.lang.Exception


Copyright ? 2003 - Apache Software Foundation