Class JettyEmbedder

java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.maven.plugin.JettyEmbedder
All Implemented Interfaces:
LifeCycle

public class JettyEmbedder extends AbstractLifeCycle
JettyEmbedded Starts jetty within the current process.
  • Field Details

  • Constructor Details

    • JettyEmbedder

      public JettyEmbedder()
  • Method Details

    • getContextHandlers

      public List<ContextHandler> getContextHandlers()
    • setContextHandlers

      public void setContextHandlers(List<ContextHandler> contextHandlers)
    • getLoginServices

      public List<LoginService> getLoginServices()
    • setLoginServices

      public void setLoginServices(List<LoginService> loginServices)
    • getRequestLog

      public RequestLog getRequestLog()
    • setRequestLog

      public void setRequestLog(RequestLog requestLog)
    • getHttpConnector

      public MavenServerConnector getHttpConnector()
    • setHttpConnector

      public void setHttpConnector(MavenServerConnector httpConnector)
    • getServer

      public Server getServer()
    • setServer

      public void setServer(Server server)
    • getWebApp

      public MavenWebAppContext getWebApp()
    • isExitVm

      public boolean isExitVm()
    • setExitVm

      public void setExitVm(boolean exitVm)
    • isStopAtShutdown

      public boolean isStopAtShutdown()
    • setStopAtShutdown

      public void setStopAtShutdown(boolean stopAtShutdown)
    • getJettyXmlFiles

      public List<File> getJettyXmlFiles()
    • setJettyXmlFiles

      public void setJettyXmlFiles(List<File> jettyXmlFiles)
    • getJettyProperties

      public Map<String,String> getJettyProperties()
    • setJettyProperties

      public void setJettyProperties(Map<String,String> jettyProperties)
    • getShutdownMonitor

      public ShutdownMonitor getShutdownMonitor()
    • setShutdownMonitor

      public void setShutdownMonitor(ShutdownMonitor shutdownMonitor)
    • getStopPort

      public int getStopPort()
    • setStopPort

      public void setStopPort(int stopPort)
    • getStopKey

      public String getStopKey()
    • setStopKey

      public void setStopKey(String stopKey)
    • setWebApp

      public void setWebApp(MavenWebAppContext app) throws Exception
      Throws:
      Exception
    • setWebAppProperties

      public void setWebAppProperties(Properties props)
    • getContextXml

      public String getContextXml()
    • setContextXml

      public void setContextXml(String contextXml)
    • doStart

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

      protected void redeployWebApp() throws Exception
      Throws:
      Exception
    • join

      protected void join() throws InterruptedException
      Throws:
      InterruptedException