org.jboss.portal.web
Class ServletContextDispatcher

java.lang.Object
  extended by org.jboss.portal.web.ServletContextDispatcher

public class ServletContextDispatcher
extends java.lang.Object

Encapsulate dispatching functionnality into a single class so it is easy to pass it as an argment to a framework that neeeds 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
ServletContextDispatcher(HttpServletRequest request, HttpServletResponse response, ServletContainerContext containerContext)
           
 
Method Summary
 HttpServletRequest getRequest()
           
 HttpServletResponse getResponse()
           
 java.lang.Object include(ServletContext targetServletContext, RequestDispatchCallback callback, java.lang.Object handback)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletContextDispatcher

public ServletContextDispatcher(HttpServletRequest request,
                                HttpServletResponse response,
                                ServletContainerContext containerContext)
Method Detail

getRequest

public HttpServletRequest getRequest()

getResponse

public HttpServletResponse getResponse()

include

public java.lang.Object include(ServletContext targetServletContext,
                                RequestDispatchCallback callback,
                                java.lang.Object handback)
                         throws java.lang.Exception
Throws:
java.lang.Exception