Class EmbeddedTomcat

java.lang.Object
org.apache.catalina.startup.Tomcat
org.red5.server.tomcat.EmbeddedTomcat

public class EmbeddedTomcat extends org.apache.catalina.startup.Tomcat
Extension of Tomcat's Tomcat class, tailored for Red5.
Author:
Paul Gregoire (mondain@gmail.com)
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.catalina.startup.Tomcat

    org.apache.catalina.startup.Tomcat.DefaultWebXmlListener, org.apache.catalina.startup.Tomcat.ExistingStandardWrapper, org.apache.catalina.startup.Tomcat.FixContextListener
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private long
     

    Fields inherited from class org.apache.catalina.startup.Tomcat

    basedir, hostname, port, server
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.catalina.Context
    addWebapp(org.apache.catalina.Host host, String contextPath, String docBase)
     
    org.apache.catalina.Context
    addWebapp(org.apache.catalina.Host host, String contextPath, String docBase, org.apache.catalina.LifecycleListener config)
     
    private org.apache.catalina.Context
    createContextInternal(org.apache.catalina.Host host, String url)
    Create the configured Context for the given host.
    long
     
    void
    setCacheMaxSize(long cacheMaxSize)
     

    Methods inherited from class org.apache.catalina.startup.Tomcat

    addContext, addContext, addContext, addDefaultMimeTypeMappings, addRole, addServlet, addServlet, addServlet, addServlet, addUser, addWebapp, addWebapp, createDefaultRealm, destroy, enableNaming, getConnector, getDefaultWebXmlListener, getEngine, getHost, getServer, getService, getWebappConfigFile, init, init, init, initBaseDir, initWebappDefaults, initWebappDefaults, main, noDefaultWebXmlPath, setAddDefaultWebXmlToWebapp, setBaseDir, setConnector, setHost, setHostname, setPort, setSilent, start, stop

    Methods inherited from class java.lang.Object

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

    • cacheMaxSize

      private long cacheMaxSize
  • Constructor Details

    • EmbeddedTomcat

      public EmbeddedTomcat()
  • Method Details

    • addWebapp

      public org.apache.catalina.Context addWebapp(org.apache.catalina.Host host, String contextPath, String docBase)
      Overrides:
      addWebapp in class org.apache.catalina.startup.Tomcat
    • addWebapp

      public org.apache.catalina.Context addWebapp(org.apache.catalina.Host host, String contextPath, String docBase, org.apache.catalina.LifecycleListener config)
      Overrides:
      addWebapp in class org.apache.catalina.startup.Tomcat
      See Also:
      • Tomcat.addWebapp(String, String)
    • createContextInternal

      private org.apache.catalina.Context createContextInternal(org.apache.catalina.Host host, String url)
      Create the configured Context for the given host. The default constructor of the class that was configured with StandardHost.setContextClass(String) will be used
      Parameters:
      host - host for which the Context should be created, or null if default host should be used
      url - path of the webapp which should get the Context
      Returns:
      newly created Context
    • getCacheMaxSize

      public long getCacheMaxSize()
    • setCacheMaxSize

      public void setCacheMaxSize(long cacheMaxSize)