org.resteasy.mock
Class MockRequestDispatcher
java.lang.Object
org.resteasy.mock.MockRequestDispatcher
- All Implemented Interfaces:
- javax.servlet.RequestDispatcher
public class MockRequestDispatcher
- extends java.lang.Object
- implements javax.servlet.RequestDispatcher
Mock implementation of the RequestDispatcher
interface.
Used for testing the web framework; typically not necessary for
testing application controllers.
- Since:
- 1.0.2
- Author:
- Rod Johnson, Juergen Hoeller
Constructor Summary |
MockRequestDispatcher(java.lang.String url)
Create a new MockRequestDispatcher 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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockRequestDispatcher
public MockRequestDispatcher(java.lang.String url)
- Create a new MockRequestDispatcher for the given URL.
- Parameters:
url
- the URL to dispatch to.
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. All Rights Reserved.