Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Constructor Summary
`ServletContainer()`

Method Summary
`boolean` | `addWebAppListener(WebAppListener listener)`
`java.lang.Object` | `include(javax.servlet.ServletContext targetServletContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, RequestDispatchCallback callback, java.lang.Object handback)` Generic detyped request dispatch to a servlet context using the include mechanism.
`void` | `register(ServletContainerContext context)` Register a servlet container context.
`boolean` | `removeWebAppListener(WebAppListener listener)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ServletContainer

    public ServletContainer()

Method Detail

### 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 to
    `request` - the request valid in the current servlet context
    `response` - 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:
    `java.lang.Exception` - any exception
    `javax.servlet.ServletException`
    `java.io.IOException`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD