Class Jetty6xInstalledLocalDeployer

    • Method Detail

      • getContextsDir

        public String getContextsDir()
        Specifies the directory for which the context.xml for the Deployables should be copied to. For Jetty this is the webapps directory.
        Returns:
        Deployable the directory to deploy the context.xml file to
      • doDeploy

        protected void doDeploy​(String deployableDir,
                                Deployable deployable)
        Do the actual deployment. This can be overriden.. We override the base implementation because Jetty requires a context XML file deployed in its context dir to perform hot deployment. Thus we need to create that context file.
        Overrides:
        doDeploy in class AbstractCopyingInstalledLocalDeployer
        Parameters:
        deployableDir - Directory in which to deploy.
        deployable - Deployable to deploy.
      • getContextFilename

        protected String getContextFilename​(WAR war,
                                            String extension)
        Context file name.
        Parameters:
        war - WAR deployable.
        extension - File extension, such as xml or properties.
        Returns:
        Context file name.
      • createContextXml

        protected String createContextXml​(WAR war)
        Creates the contents of the context file.
        Parameters:
        war - The WAR being deployed, must not be null.
        Returns:
        The contents of the context file, never null.
      • getSharedClasspathXmlFragment

        protected String getSharedClasspathXmlFragment()
        Returns:
        The XML fragment for shared classpath.
      • getExtraClasspathXmlFragment

        protected String getExtraClasspathXmlFragment​(WAR war)
        Parameters:
        war - The WAR being deployed, must not be null.
        Returns:
        The XML fragment for WAR extra classpath