Class TomcatHost

java.lang.Object
org.jboss.modcluster.container.tomcat.TomcatHost
All Implemented Interfaces:
Host

public class TomcatHost extends Object implements Host
Host implementation that wraps a Host.
Author:
Paul Ferraro
  • Field Details

    • registry

      protected final TomcatRegistry registry
    • host

      protected final org.apache.catalina.Host host
    • engine

      protected final Engine engine
  • Constructor Details

    • 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 Details

    • 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 interface Host
      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 interface Host
      Returns:
      this host's contexts
    • getEngine

      public Engine getEngine()
      Description copied from interface: Host
      The engine to which this host is associated.
      Specified by:
      getEngine in interface Host
      Returns:
      the servlet engine
    • getName

      public String getName()
      Description copied from interface: Host
      The name of this host.
      Specified by:
      getName in interface Host
      Returns:
      the host name
    • findContext

      public Context findContext(String path)
      Description copied from interface: Host
      Returns the context identified by the specified context path.
      Specified by:
      findContext in interface Host
      Parameters:
      path - a context path
      Returns:
      a web application context
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object