Package org.red5.server.tomcat
Class TomcatApplicationLoader
java.lang.Object
org.red5.server.tomcat.TomcatApplicationLoader
- All Implemented Interfaces:
IApplicationLoader
Class that can load new applications in Tomcat.
- Author:
- The Red5 Project ([email protected]), Joachim Bauch ([email protected])
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.catalina.startup.TomcatStore reference to embedded Tomcat engine.private org.apache.catalina.HostStore reference to host Tomcat is running on.protected static org.slf4j.Loggerprivate ApplicationContextStores reference to the root ApplicationContext. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTomcatApplicationLoader(org.apache.catalina.startup.Tomcat embedded, org.apache.catalina.Host host, ApplicationContext rootCtx) Wrap Tomcat engine and host. -
Method Summary
Modifier and TypeMethodDescriptionReturn the rootApplicationContext.voidloadApplication(String contextPath, String virtualHosts, String directory) Load a new application for the given context path from a directory.
-
Field Details
-
log
protected static org.slf4j.Logger log -
embedded
private org.apache.catalina.startup.Tomcat embeddedStore reference to embedded Tomcat engine. -
host
private org.apache.catalina.Host hostStore reference to host Tomcat is running on. -
rootCtx
Stores reference to the root ApplicationContext.
-
-
Constructor Details
-
TomcatApplicationLoader
protected TomcatApplicationLoader(org.apache.catalina.startup.Tomcat embedded, org.apache.catalina.Host host, ApplicationContext rootCtx) Wrap Tomcat engine and host.- Parameters:
embedded-host-
-
-
Method Details
-
getRootContext
Return the rootApplicationContext.- Specified by:
getRootContextin interfaceIApplicationLoader- Returns:
- application context
-
loadApplication
public void loadApplication(String contextPath, String virtualHosts, String directory) throws Exception Load a new application for the given context path from a directory.- Specified by:
loadApplicationin interfaceIApplicationLoader- Parameters:
contextPath- context pathvirtualHosts- virtual hostsdirectory- directory- Throws:
Exception- for fun
-