|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.red5.server.LoaderBase
org.red5.server.tomcat.TomcatLoader
public class TomcatLoader
Red5 loader for Tomcat.
Nested Class Summary | |
---|---|
protected static class |
TomcatLoader.DirectoryFilter
Filters directory content |
Field Summary | |
---|---|
protected InetAddress |
address
IP Address to bind to. |
protected Map<String,String> |
connectionProperties
Additional connection properties to be set at init. |
protected Connector |
connector
Tomcat connector. |
protected List<Connector> |
connectors
Connectors |
static String |
defaultParentContextKey
|
static String |
defaultSpringConfigLocation
|
protected static Embedded |
embedded
Embedded Tomcat service (like Catalina). |
protected static Engine |
engine
Tomcat engine. |
protected Host |
host
Base container host. |
protected List<Host> |
hosts
Hosts |
protected Realm |
realm
Tomcat realm. |
String |
serviceEngineName
Common name for the Service and Engine components. |
protected List<Valve> |
valves
Valves |
Fields inherited from class org.red5.server.LoaderBase |
---|
applicationContext, loader, red5AppCtx, webappFolder |
Constructor Summary | |
---|---|
TomcatLoader()
|
Method Summary | |
---|---|
Context |
addContext(String path,
String docBase)
Add context for path and docbase to current host. |
Context |
addContext(String path,
String docBase,
Host host)
Add context for path and docbase to a host. |
Host |
getBaseHost()
Get base host. |
Connector |
getConnector()
Return connector. |
Embedded |
getEmbedded()
Getter for embedded object. |
Engine |
getEngine()
Return Tomcat engine. |
Host |
getHost()
Get the host. |
protected String |
getHostId()
Returns a semi-unique id for this host based on its host values |
Realm |
getRealm()
Getter for realm. |
void |
init()
Initialization. |
void |
registerJMX()
|
void |
removeContext(String path)
Remove context from the current host. |
void |
setAddress(InetSocketAddress address)
The address to which we will bind. |
void |
setBaseHost(Host baseHost)
Set base host. |
void |
setConnectionProperties(Map<String,String> props)
Set connection properties for the connector |
void |
setConnector(Connector connector)
Set connector. |
void |
setConnectors(List<Connector> connectors)
Set additional connectors. |
void |
setContexts(Map<String,String> contexts)
Set additional contexts. |
void |
setEmbedded(Embedded embedded)
Setter for embedded object. |
void |
setHost(Host host)
Set the host. |
void |
setHosts(List<Host> hosts)
Set additional hosts. |
void |
setRealm(Realm realm)
Setter for realm. |
void |
setValves(List<Valve> valves)
Set additional valves. |
void |
shutdown()
Shut server down. |
boolean |
startWebApplication(String applicationName)
Starts a web application and its red5 (spring) component. |
Methods inherited from class org.red5.server.LoaderBase |
---|
getApplicationContext, getApplicationLoader, getRed5ApplicationContext, getRed5ApplicationContexts, removeRed5ApplicationContext, setApplicationContext, setApplicationLoader, setRed5ApplicationContext, setWebappFolder |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.springframework.context.ApplicationContextAware |
---|
setApplicationContext |
Field Detail |
---|
public static final String defaultSpringConfigLocation
public static final String defaultParentContextKey
public String serviceEngineName
protected Host host
protected Connector connector
protected static Embedded embedded
protected static Engine engine
protected Realm realm
protected List<Host> hosts
protected List<Connector> connectors
protected List<Valve> valves
protected Map<String,String> connectionProperties
protected InetAddress address
Constructor Detail |
---|
public TomcatLoader()
Method Detail |
---|
public Context addContext(String path, String docBase)
path
- PathdocBase
- Document base
public Context addContext(String path, String docBase, Host host)
path
- PathdocBase
- Document basehost
- Host to add context to
public void removeContext(String path)
removeContext
in interface LoaderMBean
removeContext
in class LoaderBase
path
- Pathpublic Host getBaseHost()
public Connector getConnector()
public Embedded getEmbedded()
public Engine getEngine()
public Realm getRealm()
public void init()
init
in interface LoaderMBean
public boolean startWebApplication(String applicationName)
startWebApplication
in interface LoaderMBean
public void setAddress(InetSocketAddress address)
address
- public void setBaseHost(Host baseHost)
baseHost
- Base hostpublic void setConnector(Connector connector)
connector
- Connectorpublic void setConnectors(List<Connector> connectors)
connectors
- Additional connectorspublic void setContexts(Map<String,String> contexts)
contexts
- Map of contextspublic void setEmbedded(Embedded embedded)
embedded
- Embedded objectpublic Host getHost()
public void setHost(Host host)
host
- hostpublic void setHosts(List<Host> hosts)
hosts
- List of hosts added to enginepublic void setRealm(Realm realm)
realm
- Realmpublic void setValves(List<Valve> valves)
valves
- List of valvespublic void setConnectionProperties(Map<String,String> props)
props
- additional properties to setprotected String getHostId()
public void registerJMX()
public void shutdown()
shutdown
in interface LoaderMBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |