org.jboss.portal.web.jboss
Class JBossWebContext

java.lang.Object
  extended by org.jboss.portal.web.jboss.JBossWebContext
All Implemented Interfaces:
ServletContainerFactory, ServletContainerContext

public class JBossWebContext
extends java.lang.Object
implements ServletContainerContext, ServletContainerFactory

JBossWeb implementation of the spi. It implements the ServletContainerFactory interface but it get the returned instance from the DefaultServletContainerFactory instance.

Version:
$Revision: 9051 $
Author:
Julien Viet

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.portal.web.spi.ServletContainerContext
ServletContainerContext.Registration
 
Constructor Summary
JBossWebContext()
           
 
Method Summary
 ServletContainer getServletContainer()
          Returns the servlet container.
 java.lang.Object include(javax.servlet.ServletContext targetServletContext, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, RequestDispatchCallback callback, java.lang.Object handback)
          Generic detyped request dispatch to a servlet context using the include mechanism.
 void setCallback(ServletContainerContext.Registration registration)
          Install the call back object.
 void unsetCallback(ServletContainerContext.Registration registration)
          Uninstall the call back object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBossWebContext

public JBossWebContext()
Method Detail

include

public java.lang.Object include(javax.servlet.ServletContext targetServletContext,
                                javax.servlet.http.HttpServletRequest req,
                                javax.servlet.http.HttpServletResponse resp,
                                RequestDispatchCallback callback,
                                java.lang.Object handback)
                         throws javax.servlet.ServletException,
                                java.io.IOException
Description copied from interface: ServletContainerContext
Generic detyped request dispatch to a servlet context using the include mechanism.

Specified by:
include in interface ServletContainerContext
Parameters:
targetServletContext - the target servlet context to dispatch to
req - the request valid in the current servlet context
resp - the response valid in the current servlet context
callback - the callback to perform after the dispatch operation
handback - the handback object to provide
Returns:
any object
Throws:
javax.servlet.ServletException
java.io.IOException

setCallback

public void setCallback(ServletContainerContext.Registration registration)
Description copied from interface: ServletContainerContext
Install the call back object.

Specified by:
setCallback in interface ServletContainerContext
Parameters:
registration - the call back

unsetCallback

public void unsetCallback(ServletContainerContext.Registration registration)
Description copied from interface: ServletContainerContext
Uninstall the call back object.

Specified by:
unsetCallback in interface ServletContainerContext
Parameters:
registration - the call back

getServletContainer

public ServletContainer getServletContainer()
Description copied from interface: ServletContainerFactory
Returns the servlet container.

Specified by:
getServletContainer in interface ServletContainerFactory
Returns: