Class TomcatHost
java.lang.Object
org.jboss.modcluster.container.tomcat.TomcatHost
- All Implemented Interfaces:
Host
Host
implementation that wraps a Host
.- Author:
- Paul Ferraro
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Engine
protected final org.apache.catalina.Host
protected final TomcatRegistry
-
Constructor Summary
ConstructorDescriptionTomcatHost
(TomcatRegistry registry, org.apache.catalina.Host host) Constructs a new CatalinaHost wrapping the specified catalina host. -
Method Summary
Modifier and TypeMethodDescriptionboolean
findContext
(String path) Returns the context identified by the specified context path.Returns the aliases of this host, including the actual host name.Returns all contexts associated with this host.The engine to which this host is associated.getName()
The name of this host.int
hashCode()
toString()
-
Field Details
-
registry
-
host
protected final org.apache.catalina.Host host -
engine
-
-
Constructor Details
-
TomcatHost
Constructs a new CatalinaHost wrapping the specified catalina host.- Parameters:
host
- a catalina host
-
-
Method Details
-
getAliases
Description copied from interface:Host
Returns the aliases of this host, including the actual host name.- Specified by:
getAliases
in interfaceHost
- Returns:
- a set of aliases
-
getContexts
Description copied from interface:Host
Returns all contexts associated with this host.- Specified by:
getContexts
in interfaceHost
- Returns:
- this host's contexts
-
getEngine
Description copied from interface:Host
The engine to which this host is associated. -
getName
Description copied from interface:Host
The name of this host. -
findContext
Description copied from interface:Host
Returns the context identified by the specified context path.- Specified by:
findContext
in interfaceHost
- Parameters:
path
- a context path- Returns:
- a web application context
-
equals
-
hashCode
public int hashCode() -
toString
-