Class JettyForker

  • All Implemented Interfaces:
    LifeCycle

    public class JettyForker
    extends AbstractForker
    JettyForker Uses quickstart to generate a webapp and forks a process to run it.
    • Field Detail

      • forkWebXml

        protected java.io.File forkWebXml
      • server

        protected Server server
      • containerClassPath

        protected java.lang.String containerClassPath
      • webAppPropsFile

        protected java.io.File webAppPropsFile
      • contextXml

        protected java.lang.String contextXml
      • scan

        protected boolean scan
    • Constructor Detail

      • JettyForker

        public JettyForker()
    • Method Detail

      • isScan

        public boolean isScan()
        Returns:
        the scan
      • setScan

        public void setScan​(boolean scan)
        Parameters:
        scan - if true, the forked child will scan for changes
      • getWebAppPropsFile

        public java.io.File getWebAppPropsFile()
      • setWebAppPropsFile

        public void setWebAppPropsFile​(java.io.File webAppPropsFile)
      • getForkWebXml

        public java.io.File getForkWebXml()
      • setForkWebXml

        public void setForkWebXml​(java.io.File forkWebXml)
      • getContextXml

        public java.lang.String getContextXml()
      • setContextXml

        public void setContextXml​(java.lang.String contextXml)
      • getContainerClassPath

        public java.lang.String getContainerClassPath()
      • setContainerClassPath

        public void setContainerClassPath​(java.lang.String containerClassPath)
      • getServer

        public Server getServer()
      • setServer

        public void setServer​(Server server)
      • doStart

        public void doStart()
                     throws java.lang.Exception
        Description copied from class: AbstractLifeCycle
        Method to override to start the lifecycle
        Overrides:
        doStart in class AbstractForker
        Throws:
        AbstractLifeCycle.StopException - If thrown, the lifecycle will immediately be stopped.
        java.lang.Exception - If there was a problem starting. Will cause a transition to FAILED state
      • redeployWebApp

        protected void redeployWebApp()
                               throws java.lang.Exception
        Specified by:
        redeployWebApp in class AbstractForker
        Throws:
        java.lang.Exception
      • fileSeparators

        public static java.lang.String fileSeparators​(java.lang.String path)
      • pathSeparators

        public static java.lang.String pathSeparators​(java.lang.String path)