Class TomcatServletContainerContext

java.lang.Object
org.gatein.wci.tomcat.TomcatServletContainerContext
All Implemented Interfaces:
org.apache.catalina.ContainerListener, org.apache.catalina.LifecycleListener, org.gatein.wci.spi.ServletContainerContext

public class TomcatServletContainerContext extends Object implements org.gatein.wci.spi.ServletContainerContext, org.apache.catalina.ContainerListener, org.apache.catalina.LifecycleListener
An implementation of the ServletContainerContext for Tomcat 7.
Version:
$Revision: 1.0 $
Author:
Alain Defrance
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.gatein.wci.spi.ServletContainerContext

    org.gatein.wci.spi.ServletContainerContext.Registration
  • Constructor Summary

    Constructors
    Constructor
    Description
    TomcatServletContainerContext(org.apache.catalina.Engine engine)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    containerEvent(org.apache.catalina.ContainerEvent event)
     
     
    org.apache.catalina.Engine
     
     
    include(jakarta.servlet.ServletContext targetServletContext, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.gatein.wci.RequestDispatchCallback callback, Object handback)
     
    void
    lifecycleEvent(org.apache.catalina.LifecycleEvent event)
     
    void
    login(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.gatein.wci.security.Credentials credentials)
     
    void
    logout(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
     
    void
    setCallback(org.gatein.wci.spi.ServletContainerContext.Registration registration)
     
    void
    setCrossContextLogout(boolean val)
     
    void
    unsetCallback(org.gatein.wci.spi.ServletContainerContext.Registration registration)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TomcatServletContainerContext

      public TomcatServletContainerContext(org.apache.catalina.Engine engine)
  • Method Details

    • getInstanceIfPresent

      public static TomcatServletContainerContext getInstanceIfPresent()
    • include

      public Object include(jakarta.servlet.ServletContext targetServletContext, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.gatein.wci.RequestDispatchCallback callback, Object handback) throws jakarta.servlet.ServletException, IOException
      Specified by:
      include in interface org.gatein.wci.spi.ServletContainerContext
      Throws:
      jakarta.servlet.ServletException
      IOException
    • setCallback

      public void setCallback(org.gatein.wci.spi.ServletContainerContext.Registration registration)
      Specified by:
      setCallback in interface org.gatein.wci.spi.ServletContainerContext
    • unsetCallback

      public void unsetCallback(org.gatein.wci.spi.ServletContainerContext.Registration registration)
      Specified by:
      unsetCallback in interface org.gatein.wci.spi.ServletContainerContext
    • setCrossContextLogout

      public void setCrossContextLogout(boolean val)
    • login

      public void login(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.gatein.wci.security.Credentials credentials) throws jakarta.servlet.ServletException, IOException
      Specified by:
      login in interface org.gatein.wci.spi.ServletContainerContext
      Throws:
      jakarta.servlet.ServletException
      IOException
    • logout

      public void logout(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException
      Specified by:
      logout in interface org.gatein.wci.spi.ServletContainerContext
      Throws:
      jakarta.servlet.ServletException
    • getContainerInfo

      public String getContainerInfo()
      Specified by:
      getContainerInfo in interface org.gatein.wci.spi.ServletContainerContext
    • containerEvent

      public void containerEvent(org.apache.catalina.ContainerEvent event)
      Specified by:
      containerEvent in interface org.apache.catalina.ContainerListener
    • lifecycleEvent

      public void lifecycleEvent(org.apache.catalina.LifecycleEvent event)
      Specified by:
      lifecycleEvent in interface org.apache.catalina.LifecycleListener
    • getEngine

      public org.apache.catalina.Engine getEngine()