Package org.gatein.wci
Class ServletContextDispatcher
java.lang.Object
org.gatein.wci.ServletContextDispatcher
Encapsulate dispatch functionnality into a single class so it is easy to
pass it as an argment to a framework that needs a dispatcher to just a
servlet context and does not care about the underlying spi or request/response.
- Version:
- $Revision: 1.1 $
- Author:
- Julien Viet
-
Constructor Summary
ConstructorsConstructorDescriptionServletContextDispatcher(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ServletContainer servletContainer) -
Method Summary
Modifier and TypeMethodDescriptionjavax.servlet.http.HttpServletRequestjavax.servlet.http.HttpServletResponseinclude(javax.servlet.ServletContext targetServletContext, RequestDispatchCallback callback, Object handback)
-
Constructor Details
-
ServletContextDispatcher
public ServletContextDispatcher(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ServletContainer servletContainer)
-
-
Method Details
-
getRequest
public javax.servlet.http.HttpServletRequest getRequest() -
getResponse
public javax.servlet.http.HttpServletResponse getResponse() -
include
public Object include(javax.servlet.ServletContext targetServletContext, RequestDispatchCallback callback, Object handback) throws javax.servlet.ServletException, IOException - Throws:
javax.servlet.ServletExceptionIOException
-