Class TomcatHost
- java.lang.Object
-
- org.jboss.modcluster.container.tomcat.TomcatHost
-
-
Field Summary
Fields Modifier and Type Field Description protected Engineengineprotected org.apache.catalina.Hosthostprotected TomcatRegistryregistry
-
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 booleanequals(Object object)ContextfindContext(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.EnginegetEngine()The engine to which this host is associated.StringgetName()The name of this host.inthashCode()StringtoString()
-
-
-
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:HostReturns the aliases of this host, including the actual host name.- Specified by:
getAliasesin interfaceHost- Returns:
- a set of aliases
-
getContexts
public Iterable<Context> getContexts()
Description copied from interface:HostReturns all contexts associated with this host.- Specified by:
getContextsin interfaceHost- Returns:
- this host's contexts
-
getEngine
public Engine getEngine()
Description copied from interface:HostThe engine to which this host is associated.
-
findContext
public Context findContext(String path)
Description copied from interface:HostReturns the context identified by the specified context path.- Specified by:
findContextin interfaceHost- Parameters:
path- a context path- Returns:
- a web application context
-
-