public class MockRequestDispatcher extends Object implements RequestDispatcher
| Constructor and Description |
|---|
MockRequestDispatcher(String url)
Constructs a request dispatcher, giving it a handle to the creating request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
forward(ServletRequest req,
ServletResponse res)
Simply stores the URL that was requested for forward, and returns.
|
MockHttpServletRequest |
getMockRequest(ServletRequest request)
Locates the MockHttpServletRequest in case it is wrapped.
|
void |
include(ServletRequest req,
ServletResponse res)
Simply stores that the URL was included an then returns.
|
public MockRequestDispatcher(String url)
public void forward(ServletRequest req, ServletResponse res) throws ServletException, IOException
forward in interface RequestDispatcherServletExceptionIOExceptionpublic void include(ServletRequest req, ServletResponse res) throws ServletException, IOException
include in interface RequestDispatcherServletExceptionIOExceptionpublic MockHttpServletRequest getMockRequest(ServletRequest request)
© Copyright 2005-2006, Stripes Development Team.