Interface IWebServerManageDelegate

  • All Superinterfaces:
    IWebServerPublishDelegate

    public interface IWebServerManageDelegate
    extends IWebServerPublishDelegate
    Extension of the web server delegate that can manage web server state: start and stop target web server.

    All web servers with registered IWebServerManageDelegate will be started with DT IDE launch and stopped with DT IDE shutdown.

    See Also:
    IWebServerPublishDelegate
    • Method Detail

      • needToManage

        boolean needToManage​(WebServer webServer)
        Returns whether need to manage the given instance of web server: start instance with DT IDE launch and stop with DT IDE shutdown.
        Parameters:
        webServer - the web server to check, cannot be null
        Returns:
        whether need to manage the given instance of web server
      • start

        void start​(WebServer webServer)
            throws WebServerAccessException
        Start the target web sever. It is implementation responsibility to determine the port to start web server on: it can be configured in preferences or be assigned automatically.

        Method is called with DT IDE launch.

        Parameters:
        webServer - the web server to start, cannot be null
        Throws:
        WebServerAccessException - if an error occurred during web server start