Class JettyWebAppContextJavax

    • Constructor Detail

      • JettyWebAppContextJavax

        public JettyWebAppContextJavax​(org.eclipse.jetty.ee8.webapp.WebAppContext context)
        Creates a context adapter.
        Parameters:
        context - current WebAppContext
    • Method Detail

      • getContextHandler

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

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

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