org.jboss.portal.web
Class ServletContainer
java.lang.Object
org.jboss.portal.web.ServletContainer
public class ServletContainer
- extends java.lang.Object
A static registry for the servlet container context.
- Version:
- $Revision: 1.1 $
- Author:
- Julien Viet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServletContainer
public ServletContainer()
register
public void register(ServletContainerContext context)
- Register a servlet container context. The registration is considered as successful if no existing context
is already registered.
- Parameters:
context
- the servlet container context to register
- Throws:
java.lang.IllegalArgumentException
- if the context is null
addWebAppListener
public boolean addWebAppListener(WebAppListener listener)
removeWebAppListener
public boolean removeWebAppListener(WebAppListener listener)
include
public java.lang.Object include(javax.servlet.ServletContext targetServletContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
RequestDispatchCallback callback,
java.lang.Object handback)
throws javax.servlet.ServletException,
java.io.IOException
- Generic detyped request dispatch to a servlet context using the include mechanism.
- Parameters:
targetServletContext
- the target servlet context to dispatch torequest
- the request valid in the current servlet contextresponse
- the response valid in the current servlet contextcallback
- the callback to perform after the dispatch operationhandback
- the handback object to provide
- Returns:
- any object
- Throws:
java.lang.Exception
- any exception
javax.servlet.ServletException
java.io.IOException