servletunit
Class FilterChainSimulator

java.lang.Object
  extended byservletunit.FilterChainSimulator

public class FilterChainSimulator
extends java.lang.Object

A unit testing tool for simulating a FilterChain

Version:
1.0
Author:
Sean Pritchard May 11, 2002

Constructor Summary
FilterChainSimulator()
          Constructor for the FilterChainSimulator object
 
Method Summary
 void doFilter(ServletRequest parm1, ServletResponse parm2)
          Description of the Method
 boolean doFilterCalled()
          Indicates whether doFilter has been called.
 ServletRequest getRequest()
          Gets the request passed in as a parameter of the doFilter call.
 ServletResponse getResponse()
          * Gets the response passed in as a parameter of the doFilter call.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterChainSimulator

public FilterChainSimulator()
Constructor for the FilterChainSimulator object

Method Detail

doFilter

public void doFilter(ServletRequest parm1,
                     ServletResponse parm2)
              throws javax.servlet.ServletException,
                     java.io.IOException
Description of the Method

Parameters:
parm1 - The request
parm2 - The response
Throws:
javax.servlet.ServletException
java.io.IOException - Description of the Exception

getRequest

public ServletRequest getRequest()
Gets the request passed in as a parameter of the doFilter call.

Returns:
The request value

getResponse

public ServletResponse getResponse()
* Gets the response passed in as a parameter of the doFilter call.

Returns:
The response value

doFilterCalled

public boolean doFilterCalled()
Indicates whether doFilter has been called.

Returns:
true if doFilter has been called


Copyright © Deryl Seale All Rights Reserved.