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