Class WarLoaderServlet

All Implemented Interfaces:
jakarta.servlet.ServletContextListener, EventListener

public class WarLoaderServlet extends ContextLoaderListener
Entry point from which the server config file is loaded while running within a J2EE application container. This listener should be registered after Log4jConfigListener in web.xml, if the latter is used.
Author:
The Red5 Project, Paul Gregoire (mondain@gmail.com)
  • Field Details

  • Constructor Details

    • WarLoaderServlet

      public WarLoaderServlet()
  • Method Details

    • contextInitialized

      public void contextInitialized(jakarta.servlet.ServletContextEvent sce)
      Main entry point for the Red5 Server as a war
      Specified by:
      contextInitialized in interface jakarta.servlet.ServletContextListener
      Overrides:
      contextInitialized in class ContextLoaderListener
    • registerSubContext

      public void registerSubContext(String webAppKey)
    • contextDestroyed

      public void contextDestroyed(jakarta.servlet.ServletContextEvent sce)
      Clearing the in-memory configuration parameters, we will receive notification that the servlet context is about to be shut down
      Specified by:
      contextDestroyed in interface jakarta.servlet.ServletContextListener
      Overrides:
      contextDestroyed in class ContextLoaderListener