Package org.eclipse.jetty.maven.plugin
Class JettyEmbedder
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.maven.plugin.JettyEmbedder
- All Implemented Interfaces:
LifeCycle
JettyEmbedded
Starts jetty within the current process.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ContextHandler>protected booleanprotected MavenServerConnectorprotected List<LoginService>protected RequestLogprotected Serverprotected ShutdownMonitorprotected booleanprotected Stringprotected intprotected MavenWebAppContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoStart()Method to override to start the lifecycleintbooleanisExitVm()booleanprotected voidjoin()protected voidvoidsetContextHandlers(List<ContextHandler> contextHandlers) voidsetContextXml(String contextXml) voidsetExitVm(boolean exitVm) voidsetHttpConnector(MavenServerConnector httpConnector) voidsetJettyProperties(Map<String, String> jettyProperties) voidsetJettyXmlFiles(List<File> jettyXmlFiles) voidsetLoginServices(List<LoginService> loginServices) voidsetRequestLog(RequestLog requestLog) voidvoidsetShutdownMonitor(ShutdownMonitor shutdownMonitor) voidsetStopAtShutdown(boolean stopAtShutdown) voidsetStopKey(String stopKey) voidsetStopPort(int stopPort) voidvoidsetWebAppProperties(Properties props) Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addEventListener, doStop, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, start, stop, toString
-
Field Details
-
contextHandlers
-
loginServices
-
requestLog
-
httpConnector
-
server
-
webApp
-
exitVm
protected boolean exitVm -
stopAtShutdown
protected boolean stopAtShutdown -
jettyXmlFiles
-
jettyProperties
-
shutdownMonitor
-
stopPort
protected int stopPort -
stopKey
-
-
Constructor Details
-
JettyEmbedder
public JettyEmbedder()
-
-
Method Details
-
getContextHandlers
-
setContextHandlers
-
getLoginServices
-
setLoginServices
-
getRequestLog
-
setRequestLog
-
getHttpConnector
-
setHttpConnector
-
getServer
-
setServer
-
getWebApp
-
isExitVm
public boolean isExitVm() -
setExitVm
public void setExitVm(boolean exitVm) -
isStopAtShutdown
public boolean isStopAtShutdown() -
setStopAtShutdown
public void setStopAtShutdown(boolean stopAtShutdown) -
getJettyXmlFiles
-
setJettyXmlFiles
-
getJettyProperties
-
setJettyProperties
-
getShutdownMonitor
-
setShutdownMonitor
-
getStopPort
public int getStopPort() -
setStopPort
public void setStopPort(int stopPort) -
getStopKey
-
setStopKey
-
setWebApp
- Throws:
Exception
-
setWebAppProperties
-
getContextXml
-
setContextXml
-
doStart
Description copied from class:AbstractLifeCycleMethod to override to start the lifecycle- Overrides:
doStartin classAbstractLifeCycle- 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
- Throws:
Exception
-
join
- Throws:
InterruptedException
-