org.directwebremoting.util
Class FakeRequestDispatcher

java.lang.Object
  extended by org.directwebremoting.util.FakeRequestDispatcher
All Implemented Interfaces:
javax.servlet.RequestDispatcher

public class FakeRequestDispatcher
extends java.lang.Object
implements javax.servlet.RequestDispatcher

Mock implementation of the RequestDispatcher interface.

Author:
Rod Johnson, Juergen Hoeller, Joe Walker [joe at getahead dot ltd dot uk]

Constructor Summary
FakeRequestDispatcher(java.lang.String url)
          Create a new FakeRequestDispatcher for the given URL.
 
Method Summary
 void forward(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
           
 void include(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FakeRequestDispatcher

public FakeRequestDispatcher(java.lang.String url)
Create a new FakeRequestDispatcher for the given URL.

Parameters:
url - the URL to dispatch to.
Method Detail

forward

public void forward(javax.servlet.ServletRequest request,
                    javax.servlet.ServletResponse response)
Specified by:
forward in interface javax.servlet.RequestDispatcher

include

public void include(javax.servlet.ServletRequest request,
                    javax.servlet.ServletResponse response)
Specified by:
include in interface javax.servlet.RequestDispatcher

Copyright 2008