Class TomcatEngine
java.lang.Object
org.jboss.modcluster.container.tomcat.TomcatEngine
- All Implemented Interfaces:
Engine
Engine
implementation that wraps a Context
.- Author:
- Paul Ferraro
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.apache.catalina.Engine
protected final TomcatRegistry
protected final Server
-
Constructor Summary
ConstructorDescriptionTomcatEngine
(TomcatRegistry registry, org.apache.catalina.Engine engine) Constructs a new CatalinaEngine that wraps the specified catalina engine -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the host identified by the specified host name.Iteration of all connectors associated with this engine that can be used to communicate with its proxies.Returns the default host of this engine.getHosts()
The hosts associated with this engine.The jvm route of this servlet engine.getName()
The name of this engine.The connector which this engine uses to communicate with its proxies.The server to which this engine is associated.Returns the cookie name used for sessions.Returns the url parameter name used for sessions.int
hashCode()
void
setJvmRoute
(String jvmRoute) Set this jvm route for this servlet engine.toString()
-
Field Details
-
registry
-
engine
protected final org.apache.catalina.Engine engine -
server
-
-
Constructor Details
-
TomcatEngine
Constructs a new CatalinaEngine that wraps the specified catalina engine- Parameters:
engine
- a catalina engine
-
-
Method Details
-
getServer
Description copied from interface:Engine
The server to which this engine is associated. -
getHosts
Description copied from interface:Engine
The hosts associated with this engine. -
getDefaultHost
Description copied from interface:Engine
Returns the default host of this engine.- Specified by:
getDefaultHost
in interfaceEngine
- Returns:
- the default host
-
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
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
-
getName
Description copied from interface:Engine
The name of this engine. -
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
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
Description copied from interface:Engine
Returns the host identified by the specified host name. -
getSessionCookieName
Description copied from interface:Engine
Returns the cookie name used for sessions.- Specified by:
getSessionCookieName
in interfaceEngine
- Returns:
- a cookie name
-
getSessionParameterName
Description copied from interface:Engine
Returns the url parameter name used for sessions.- Specified by:
getSessionParameterName
in interfaceEngine
- Returns:
- a parameter name
-
equals
-
hashCode
public int hashCode() -
toString
-