Class TomcatEngine
- java.lang.Object
-
- org.jboss.modcluster.container.tomcat.TomcatEngine
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.catalina.Engine
engine
protected TomcatRegistry
registry
protected Server
server
-
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 boolean
equals(Object object)
Host
findHost(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.String
getDefaultHost()
Returns the default host of this engine.Iterable<Host>
getHosts()
The hosts associated with this engine.String
getJvmRoute()
The jvm route of this servlet engine.String
getName()
The name of this engine.Connector
getProxyConnector()
The connector which this engine uses to communicate with its proxies.Server
getServer()
The server to which this engine is associated.String
getSessionCookieName()
Returns the cookie name used for sessions.String
getSessionParameterName()
Returns the url parameter name used for sessions.int
hashCode()
void
setJvmRoute(String jvmRoute)
Set this jvm route for this servlet engine.String
toString()
-
-
-
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:Engine
The server to which this engine is associated.
-
getHosts
public Iterable<Host> getHosts()
Description copied from interface:Engine
The hosts associated with this engine.
-
getDefaultHost
public String getDefaultHost()
Description copied from interface:Engine
Returns the default host of this engine.- Specified by:
getDefaultHost
in interfaceEngine
- Returns:
- the default host
-
getJvmRoute
public String getJvmRoute()
Description copied from interface:Engine
The jvm route of this servlet engine. This uniquely identifies this node within the proxy.- Specified by:
getJvmRoute
in interfaceEngine
- Returns:
- the servlet engine's jvm route
-
setJvmRoute
public void setJvmRoute(String jvmRoute)
Description copied from interface:Engine
Set this jvm route for this servlet engine. Used to create a reasonable default value, if no explicit route is defined.- Specified by:
setJvmRoute
in interfaceEngine
- Parameters:
jvmRoute
- a unique jvm route
-
getConnectors
public Iterable<Connector> getConnectors()
Description copied from interface:Engine
Iteration of all connectors associated with this engine that can be used to communicate with its proxies.- Specified by:
getConnectors
in interfaceEngine
- Returns:
- iteration of all connectors associated with this engine
-
getProxyConnector
public Connector getProxyConnector()
Description copied from interface:Engine
The connector which this engine uses to communicate with its proxies.- Specified by:
getProxyConnector
in interfaceEngine
- Returns:
- the connector used by mod_cluster
-
findHost
public Host findHost(String name)
Description copied from interface:Engine
Returns the host identified by the specified host name.
-
getSessionCookieName
public String getSessionCookieName()
Description copied from interface:Engine
Returns the cookie name used for sessions.- Specified by:
getSessionCookieName
in interfaceEngine
- Returns:
- a cookie name
-
getSessionParameterName
public String getSessionParameterName()
Description copied from interface:Engine
Returns the url parameter name used for sessions.- Specified by:
getSessionParameterName
in interfaceEngine
- Returns:
- a parameter name
-
-