Package org.gatein.wci
Class ServletContextDispatcher
- java.lang.Object
-
- org.gatein.wci.ServletContextDispatcher
-
public class ServletContextDispatcher extends Object
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
Constructors Constructor Description ServletContextDispatcher(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ServletContainer servletContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.servlet.http.HttpServletRequestgetRequest()javax.servlet.http.HttpServletResponsegetResponse()Objectinclude(javax.servlet.ServletContext targetServletContext, RequestDispatchCallback callback, Object handback)
-
-
-
Constructor Detail
-
ServletContextDispatcher
public ServletContextDispatcher(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ServletContainer servletContainer)
-
-
Method Detail
-
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
-
-