org.apache.tapestry.test.mock
Class MockRequestDispatcher

java.lang.Object
  extended by org.apache.tapestry.test.mock.MockRequestDispatcher
All Implemented Interfaces:
RequestDispatcher

public class MockRequestDispatcher
extends Object
implements RequestDispatcher

Used to enable mock testing of internal request forwarding.

Since:
4.0
Author:
Howard Lewis Ship

Constructor Summary
MockRequestDispatcher(String resourcePath)
           
 
Method Summary
 void forward(ServletRequest request, ServletResponse response)
           
 void include(ServletRequest request, ServletResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockRequestDispatcher

public MockRequestDispatcher(String resourcePath)
Method Detail

forward

public void forward(ServletRequest request,
                    ServletResponse response)
             throws ServletException,
                    IOException
Specified by:
forward in interface RequestDispatcher
Throws:
ServletException
IOException

include

public void include(ServletRequest request,
                    ServletResponse response)
             throws ServletException,
                    IOException
Specified by:
include in interface RequestDispatcher
Throws:
ServletException
IOException


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.