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.StopException
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<ContextHandler>
protected boolean
protected MavenServerConnector
protected List<LoginService>
protected RequestLog
protected Server
protected ShutdownMonitor
protected boolean
protected String
protected int
protected MavenWebAppContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doStart()
Method to override to start the lifecycleint
boolean
isExitVm()
boolean
protected void
join()
protected void
void
setContextHandlers
(List<ContextHandler> contextHandlers) void
setContextXml
(String contextXml) void
setExitVm
(boolean exitVm) void
setHttpConnector
(MavenServerConnector httpConnector) void
setJettyProperties
(Map<String, String> jettyProperties) void
setJettyXmlFiles
(List<File> jettyXmlFiles) void
setLoginServices
(List<LoginService> loginServices) void
setRequestLog
(RequestLog requestLog) void
void
setShutdownMonitor
(ShutdownMonitor shutdownMonitor) void
setStopAtShutdown
(boolean stopAtShutdown) void
setStopKey
(String stopKey) void
setStopPort
(int stopPort) void
void
setWebAppProperties
(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:AbstractLifeCycle
Method to override to start the lifecycle- Overrides:
doStart
in 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
-