Class MockPortletRequestDispatcher
- java.lang.Object
- org.springframework.mock.web.portlet.MockPortletRequestDispatcher
- All Implemented Interfaces:
PortletRequestDispatcher
public class MockPortletRequestDispatcher extends Object implements PortletRequestDispatcher
Mock implementation of thePortletRequestDispatcherinterface.- Since:
- 2.0
- Author:
- John A. Lewis, Juergen Hoeller
Constructor Summary
Constructors Constructor Description MockPortletRequestDispatcher(String url)Create a new MockPortletRequestDispatcher for the given URL.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidforward(PortletRequest request, PortletResponse response)voidinclude(PortletRequest request, PortletResponse response)voidinclude(RenderRequest request, RenderResponse response)
Constructor Detail
MockPortletRequestDispatcher
public MockPortletRequestDispatcher(String url)
Create a new MockPortletRequestDispatcher for the given URL.- Parameters:
url- the URL to dispatch to.
Method Detail
include
public void include(RenderRequest request, RenderResponse response) throws PortletException, IOException
- Specified by:
includein interfacePortletRequestDispatcher- Throws:
PortletExceptionIOException
include
public void include(PortletRequest request, PortletResponse response) throws PortletException, IOException
- Specified by:
includein interfacePortletRequestDispatcher- Throws:
PortletExceptionIOException
forward
public void forward(PortletRequest request, PortletResponse response) throws PortletException, IOException
- Specified by:
forwardin interfacePortletRequestDispatcher- Throws:
PortletExceptionIOException