org.springframework.mock.web
Class MockRequestDispatcher
java.lang.Object
org.springframework.mock.web.MockRequestDispatcher
- All Implemented Interfaces:
- RequestDispatcher
- public class MockRequestDispatcher
- extends Object
- implements RequestDispatcher
Mock implementation of the RequestDispatcher interface.
Used for testing the web framework; typically not
necessary for testing application controllers.
- Author:
- Rod Johnson, Juergen Hoeller
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockRequestDispatcher
public MockRequestDispatcher(String url)
forward
public void forward(ServletRequest servletRequest,
ServletResponse servletResponse)
- Specified by:
forward
in interface RequestDispatcher
include
public void include(ServletRequest servletRequest,
ServletResponse servletResponse)
- Specified by:
include
in interface RequestDispatcher
Copyright (C) 2003-2004 The Spring Framework Project.