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 (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 inherited from class org.apache.catalina.startup.Tomcat
basedir, hostname, port, server
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.catalina.Context
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 configuredContext
for the givenhost
.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
-
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 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:
addWebapp
in 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 configuredContext
for the givenhost
. The default constructor of the class that was configured withStandardHost.setContextClass(String)
will be used- Parameters:
host
- host for which theContext
should be created, ornull
if 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)
-