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.
-
Constructor Summary
ConstructorsConstructorDescriptionServletContextDispatcher(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, ServletContainer servletContainer) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.servlet.http.HttpServletRequestjakarta.servlet.http.HttpServletResponseinclude(jakarta.servlet.ServletContext targetServletContext, RequestDispatchCallback callback, Object handback)
-
Constructor Details
-
ServletContextDispatcher
public ServletContextDispatcher(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, ServletContainer servletContainer)
-
-
Method Details
-
getRequest
public jakarta.servlet.http.HttpServletRequest getRequest() -
getResponse
public jakarta.servlet.http.HttpServletResponse getResponse() -
include
public Object include(jakarta.servlet.ServletContext targetServletContext, RequestDispatchCallback callback, Object handback) throws jakarta.servlet.ServletException, IOException - Throws:
jakarta.servlet.ServletExceptionIOException
-