Interface JettyDeployer.Context

    • Method Detail

      • getContextHandler

        Object getContextHandler​(String contextPath)
        Finds a deployed context by its context path.
        Parameters:
        contextPath - context path
        Returns:
        context handler, or null if none exists
      • deploy

        void deploy​(String contextPath,
                    File warFile)
             throws Exception
        Deploys a WAR at the specified context path.
        Parameters:
        contextPath - context path
        warFile - WAR file
        Throws:
        Exception - if deployment fails
      • undeploy

        String undeploy​(Object contextHandler)
                 throws Exception
        Stops and removes a deployed context.
        Parameters:
        contextHandler - context handler
        Returns:
        location of the deployed WAR
        Throws:
        Exception - if undeployment fails