Class TomcatEngine
- java.lang.Object
-
- org.jboss.modcluster.container.tomcat.TomcatEngine
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.catalina.Engineengineprotected TomcatRegistryregistryprotected Serverserver
-
Constructor Summary
Constructors Constructor Description TomcatEngine(TomcatRegistry registry, org.apache.catalina.Engine engine)Constructs a new CatalinaEngine that wraps the specified catalina engine
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)HostfindHost(String name)Returns the host identified by the specified host name.Iterable<Connector>getConnectors()Iteration of all connectors associated with this engine that can be used to communicate with its proxies.StringgetDefaultHost()Returns the default host of this engine.Iterable<Host>getHosts()The hosts associated with this engine.StringgetJvmRoute()The jvm route of this servlet engine.StringgetName()The name of this engine.ConnectorgetProxyConnector()The connector which this engine uses to communicate with its proxies.ServergetServer()The server to which this engine is associated.StringgetSessionCookieName()Returns the cookie name used for sessions.StringgetSessionParameterName()Returns the url parameter name used for sessions.inthashCode()voidsetJvmRoute(String jvmRoute)Set this jvm route for this servlet engine.StringtoString()
-
-
-
Field Detail
-
registry
protected final TomcatRegistry registry
-
engine
protected final org.apache.catalina.Engine engine
-
server
protected final Server server
-
-
Constructor Detail
-
TomcatEngine
public TomcatEngine(TomcatRegistry registry, org.apache.catalina.Engine engine)
Constructs a new CatalinaEngine that wraps the specified catalina engine- Parameters:
engine- a catalina engine
-
-
Method Detail
-
getServer
public Server getServer()
Description copied from interface:EngineThe server to which this engine is associated.
-
getHosts
public Iterable<Host> getHosts()
Description copied from interface:EngineThe hosts associated with this engine.
-
getDefaultHost
public String getDefaultHost()
Description copied from interface:EngineReturns the default host of this engine.- Specified by:
getDefaultHostin interfaceEngine- Returns:
- the default host
-
getJvmRoute
public String getJvmRoute()
Description copied from interface:EngineThe jvm route of this servlet engine. This uniquely identifies this node within the proxy.- Specified by:
getJvmRoutein interfaceEngine- Returns:
- the servlet engine's jvm route
-
setJvmRoute
public void setJvmRoute(String jvmRoute)
Description copied from interface:EngineSet this jvm route for this servlet engine. Used to create a reasonable default value, if no explicit route is defined.- Specified by:
setJvmRoutein interfaceEngine- Parameters:
jvmRoute- a unique jvm route
-
getConnectors
public Iterable<Connector> getConnectors()
Description copied from interface:EngineIteration of all connectors associated with this engine that can be used to communicate with its proxies.- Specified by:
getConnectorsin interfaceEngine- Returns:
- iteration of all connectors associated with this engine
-
getProxyConnector
public Connector getProxyConnector()
Description copied from interface:EngineThe connector which this engine uses to communicate with its proxies.- Specified by:
getProxyConnectorin interfaceEngine- Returns:
- the connector used by mod_cluster
-
findHost
public Host findHost(String name)
Description copied from interface:EngineReturns the host identified by the specified host name.
-
getSessionCookieName
public String getSessionCookieName()
Description copied from interface:EngineReturns the cookie name used for sessions.- Specified by:
getSessionCookieNamein interfaceEngine- Returns:
- a cookie name
-
getSessionParameterName
public String getSessionParameterName()
Description copied from interface:EngineReturns the url parameter name used for sessions.- Specified by:
getSessionParameterNamein interfaceEngine- Returns:
- a parameter name
-
-