Class TomcatHost
- java.lang.Object
-
- org.jboss.modcluster.container.tomcat.TomcatHost
-
-
Field Summary
Fields Modifier and Type Field Description protected Engine
engine
protected org.apache.catalina.Host
host
protected TomcatRegistry
registry
-
Constructor Summary
Constructors Constructor Description TomcatHost(TomcatRegistry registry, org.apache.catalina.Host host)
Constructs a new CatalinaHost wrapping the specified catalina host.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Context
findContext(String path)
Returns the context identified by the specified context path.Set<String>
getAliases()
Returns the aliases of this host, including the actual host name.Iterable<Context>
getContexts()
Returns all contexts associated with this host.Engine
getEngine()
The engine to which this host is associated.String
getName()
The name of this host.int
hashCode()
String
toString()
-
-
-
Field Detail
-
registry
protected final TomcatRegistry registry
-
host
protected final org.apache.catalina.Host host
-
engine
protected final Engine engine
-
-
Constructor Detail
-
TomcatHost
public TomcatHost(TomcatRegistry registry, org.apache.catalina.Host host)
Constructs a new CatalinaHost wrapping the specified catalina host.- Parameters:
host
- a catalina host
-
-
Method Detail
-
getAliases
public Set<String> 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
public Iterable<Context> getContexts()
Description copied from interface:Host
Returns all contexts associated with this host.- Specified by:
getContexts
in interfaceHost
- Returns:
- this host's contexts
-
getEngine
public Engine getEngine()
Description copied from interface:Host
The engine to which this host is associated.
-
findContext
public Context findContext(String path)
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
-
-