Class JettyForker

  • All Implemented Interfaces:

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

      • forkWebXml

        protected forkWebXml
      • server

        protected Server server
      • containerClassPath

        protected java.lang.String containerClassPath
      • webAppPropsFile

        protected webAppPropsFile
      • contextXml

        protected java.lang.String contextXml
      • scan

        protected boolean scan
    • Constructor Detail

      • JettyForker

        public JettyForker()
    • Method Detail

      • isScan

        public boolean isScan()
        the scan
      • setScan

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

        public getWebAppPropsFile()
      • setWebAppPropsFile

        public void setWebAppPropsFile​( webAppPropsFile)
      • getForkWebXml

        public getForkWebXml()
      • setForkWebXml

        public void setForkWebXml​( 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
        doStart in class AbstractForker
        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
      • fileSeparators

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

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