当前页面:
在线文档首页 >
Spring Framework 2.0.5 API 文档英文版
MockRequestDispatcher (Spring Framework API 2.0) - Spring Framework 2.0.5 API 文档英文版
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.
- Since:
- 1.0.2
- 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)
- Create a new MockRequestDispatcher for the given URL.
- Parameters:
url
- the URL to dispatch to.
forward
public void forward(ServletRequest request,
ServletResponse response)
- Specified by:
forward
in interface RequestDispatcher
include
public void include(ServletRequest request,
ServletResponse response)
- Specified by:
include
in interface RequestDispatcher
Copyright © 2002-2007 The Spring Framework.