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
FieldsModifier and TypeFieldDescriptionprotected final org.apache.catalina.Engineprotected final TomcatRegistryprotected final Server -
Constructor Summary
ConstructorsConstructorDescriptionTomcatEngine(TomcatRegistry registry, org.apache.catalina.Engine engine) Constructs a new CatalinaEngine that wraps the specified catalina engine -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns 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.inthashCode()voidsetJvmRoute(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:EngineThe server to which this engine is associated. -
getHosts
Description copied from interface:EngineThe hosts associated with this engine. -
getDefaultHost
Description copied from interface:EngineReturns the default host of this engine.- Specified by:
getDefaultHostin interfaceEngine- Returns:
- the default host
-
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
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
-
getName
Description copied from interface:EngineThe name of this engine. -
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
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
Description copied from interface:EngineReturns the host identified by the specified host name. -
getSessionCookieName
Description copied from interface:EngineReturns the cookie name used for sessions.- Specified by:
getSessionCookieNamein interfaceEngine- Returns:
- a cookie name
-
getSessionParameterName
Description copied from interface:EngineReturns the url parameter name used for sessions.- Specified by:
getSessionParameterNamein interfaceEngine- Returns:
- a parameter name
-
equals
-
hashCode
public int hashCode() -
toString
-