Package org.red5.server.tomcat
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 ([email protected])
-
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
FieldsFields inherited from class org.apache.catalina.startup.Tomcat
basedir, hostname, port, server -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.catalina.Contextorg.apache.catalina.ContextaddWebapp(org.apache.catalina.Host host, String contextPath, String docBase, org.apache.catalina.LifecycleListener config) private org.apache.catalina.ContextcreateContextInternal(org.apache.catalina.Host host, String url) Create the configuredContextfor the givenhost.longvoidsetCacheMaxSize(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
-
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:
addWebappin classorg.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:
addWebappin classorg.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 configuredContextfor the givenhost. The default constructor of the class that was configured withStandardHost.setContextClass(String)will be used- Parameters:
host- host for which theContextshould be created, ornullif default host should be usedurl- path of the webapp which should get theContext- Returns:
- newly created
Context
-
getCacheMaxSize
public long getCacheMaxSize() -
setCacheMaxSize
public void setCacheMaxSize(long cacheMaxSize)
-