org.red5.server.war
Class MainServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.red5.server.war.MainServlet
All Implemented Interfaces:
Serializable, EventListener, javax.servlet.Servlet, javax.servlet.ServletConfig, javax.servlet.ServletContextListener

public class MainServlet
extends javax.servlet.http.HttpServlet
implements javax.servlet.ServletContextListener

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 (red5@osflash.org), Paul Gregoire (mondain@gmail.com)
See Also:
Serialized Form

Field Summary
static org.slf4j.Logger logger
           
protected static String red5Config
           
 
Constructor Summary
MainServlet()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent sce)
          Clearing the in-memory configuration parameters, we will receive notification that the servlet context is about to be shut down
 void contextInitialized(javax.servlet.ServletContextEvent sce)
          Main entry point for the Red5 Server as a war
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static org.slf4j.Logger logger

red5Config

protected static String red5Config
Constructor Detail

MainServlet

public MainServlet()
Method Detail

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent sce)
Main entry point for the Red5 Server as a war

Specified by:
contextInitialized in interface javax.servlet.ServletContextListener

contextDestroyed

public void contextDestroyed(javax.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 javax.servlet.ServletContextListener


Copyright © 2006-2007 the Red5 project.