Package com.jalios.servlet.http
Class MockRequestDispatcher
- java.lang.Object
-
- com.jalios.servlet.http.MockRequestDispatcher
-
- All Implemented Interfaces:
javax.servlet.RequestDispatcher
public class MockRequestDispatcher extends java.lang.Object implements javax.servlet.RequestDispatcher
Mock implementation of theRequestDispatcher
interface.
-
-
Field Summary
-
Fields inherited from interface javax.servlet.RequestDispatcher
ERROR_EXCEPTION, ERROR_EXCEPTION_TYPE, ERROR_MESSAGE, ERROR_REQUEST_URI, ERROR_SERVLET_NAME, ERROR_STATUS_CODE, FORWARD_CONTEXT_PATH, FORWARD_MAPPING, FORWARD_PATH_INFO, FORWARD_QUERY_STRING, FORWARD_REQUEST_URI, FORWARD_SERVLET_PATH, INCLUDE_CONTEXT_PATH, INCLUDE_MAPPING, INCLUDE_PATH_INFO, INCLUDE_QUERY_STRING, INCLUDE_REQUEST_URI, INCLUDE_SERVLET_PATH
-
-
Constructor Summary
Constructors Constructor Description MockRequestDispatcher(java.lang.String resource)
Create a new MockRequestDispatcher for the given resource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
forward(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
protected MockHttpServletResponse
getMockHttpServletResponse(javax.servlet.ServletResponse response)
Obtain the underlyingMockHttpServletResponse
, unwrappingHttpServletResponseWrapper
decorators if necessary.void
include(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
-
-
-
Method Detail
-
forward
public void forward(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
- Specified by:
forward
in interfacejavax.servlet.RequestDispatcher
-
include
public void include(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
- Specified by:
include
in interfacejavax.servlet.RequestDispatcher
-
getMockHttpServletResponse
protected MockHttpServletResponse getMockHttpServletResponse(javax.servlet.ServletResponse response)
Obtain the underlyingMockHttpServletResponse
, unwrappingHttpServletResponseWrapper
decorators if necessary.
-
-