au.com.whitesquare.waf.command.response
Class ExceptionForwardResponse

java.lang.Object
  extended byau.com.whitesquare.waf.command.Response
      extended byau.com.whitesquare.waf.command.response.BaseForwardResponse
          extended byau.com.whitesquare.waf.command.response.JSPForwardResponse
              extended byau.com.whitesquare.waf.command.response.ExceptionForwardResponse

public class ExceptionForwardResponse
extends JSPForwardResponse



Last Modified $Date: 2004/11/17 12:16:07 $

Version:
$Revision: 1.1 $
Author:
Garth Chambers

Field Summary
 
Fields inherited from class au.com.whitesquare.waf.command.Response
servletContext
 
Constructor Summary
ExceptionForwardResponse(Exception ex)
          Constructs a new ExceptionForwardResponse with the given Exception, and the URL will be set to the default WAF error page.
ExceptionForwardResponse(Exception ex, String url)
          Configures the response to be forwarded to the given URL, and sets the message of the Response to be that of the Exception that has been caught.
 
Methods inherited from class au.com.whitesquare.waf.command.response.JSPForwardResponse
sendResponse
 
Methods inherited from class au.com.whitesquare.waf.command.response.BaseForwardResponse
getActualData, getData, getErrorCode, getFieldError, getMessage, getRequestValue, getUnreadErrors, getURL, hasFieldError, isErrorResponse, putData, setErrorCode, setErrorResponse, setErrors, setMessage, setParameters, setURL, toString
 
Methods inherited from class au.com.whitesquare.waf.command.Response
init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExceptionForwardResponse

public ExceptionForwardResponse(Exception ex)
Constructs a new ExceptionForwardResponse with the given Exception, and the URL will be set to the default WAF error page.

Parameters:
ex - the Exception being caught

ExceptionForwardResponse

public ExceptionForwardResponse(Exception ex,
                                String url)
Configures the response to be forwarded to the given URL, and sets the message of the Response to be that of the Exception that has been caught.

Parameters:
ex - the Exception being caught
url - the URL that the Response forwards to. If null, it will forward to the default WAF error page.


Copyright © 2004 Whitesquare Software. All Rights Reserved.