Class AbstractCatalinaEmbeddedLocalContainer

    • Constructor Detail

      • AbstractCatalinaEmbeddedLocalContainer

        public AbstractCatalinaEmbeddedLocalContainer​(LocalConfiguration configuration)
        Creates a Tomcat EmbeddedLocalContainer.
        Parameters:
        configuration - the configuration of the newly created container.
    • Method Detail

      • getController

        public TomcatEmbedded.Embedded getController()
        Returns:
        the Tomcat controller object. Always non-null.
      • getHost

        public TomcatEmbedded.Host getHost()
        Returns:
        the Tomcat host object. Always non-null.
      • waitForCompletion

        protected void waitForCompletion​(boolean waitForStarting)
                                  throws InterruptedException
        Embedded Tomcat's start method is synchronous, so no need for waiting when starting. Calls System.gc() after container has stopped. Ping the WAR CPC to verify if the container is started or stopped.
        Overrides:
        waitForCompletion in class AbstractEmbeddedLocalContainer
        Parameters:
        waitForStarting - if true then wait for container start, if false wait for container stop
        Throws:
        InterruptedException - if the thread sleep is interrupted
      • prepareController

        protected abstract void prepareController​(TomcatEmbedded wrapper,
                                                  File home,
                                                  int port)
        Prepare the Tomcat controller. After this method returns, the host and connector protected attributes must be set.
        Parameters:
        wrapper - Tomcat wrapper.
        home - CATALINA_BASE directory.
        port - HTTP port.
      • configureMaxParameterCount

        protected void configureMaxParameterCount()