Class TomcatEmbedded.Host

  • Enclosing class:
    TomcatEmbedded

    public final class TomcatEmbedded.Host
    extends Object
    Copy of org.apache.catalina.Host
    • Method Detail

      • setAutoDeploy

        public void setAutoDeploy​(boolean b)
        Supposed to enable auto-deployment of war file.
        Parameters:
        b - true to enable.
      • getName

        public String getName()
        Gets the name of this host.
        Returns:
        host name.
      • addChild

        public void addChild​(TomcatEmbedded.Context context)
        Deploys a web application.
        Parameters:
        context - context to be deployed.
      • findChildren

        public TomcatEmbedded.Context[] findChildren()
        Return all context children.
        Returns:
        All context children.
      • findChild

        public TomcatEmbedded.Context findChild​(String name)
        Finds a child with the given name.
        Parameters:
        name - Name of the child.
        Returns:
        Child with the given name.
      • removeChild

        public void removeChild​(TomcatEmbedded.Context context)
        Removes a web application.
        Parameters:
        context - context to be removed.