public class JettyWrapper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JettyWrapper.JettyWrapperException |
| Constructor and Description |
|---|
JettyWrapper(org.apache.maven.plugin.logging.Log log,
File baseDir)
Creates a Wrapper for controlling a Jetty server.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBaseDir(File baseDir) |
void |
addResourceJar(File resourceJar) |
void |
blockUntilInterrupted() |
protected org.apache.maven.plugin.logging.Log |
getLog() |
URI |
getUri() |
void |
setAdditionalServlets(Map<String,javax.servlet.Servlet> additionalServlets) |
void |
setProxyServletConfigs(List<ProxyServletConfig> proxyServletConfigs) |
void |
setStaticResourcesServletConfigs(List<StaticResourcesServletConfig> staticResourcesServletConfigs) |
void |
start(String host,
int port) |
void |
start(String host,
org.apache.commons.lang3.Range<Integer> portRange) |
void |
stop() |
void |
waitUntilStarted(int timeoutMillis) |
public JettyWrapper(org.apache.maven.plugin.logging.Log log,
File baseDir)
log - the log used by this wrapperbaseDir - the base directory for serving static resourcespublic void addBaseDir(File baseDir)
public void setStaticResourcesServletConfigs(List<StaticResourcesServletConfig> staticResourcesServletConfigs)
public void addResourceJar(File resourceJar)
public void setProxyServletConfigs(List<ProxyServletConfig> proxyServletConfigs)
public void setAdditionalServlets(Map<String,javax.servlet.Servlet> additionalServlets)
public void start(String host, int port) throws JettyWrapper.JettyWrapperException
public void start(String host, org.apache.commons.lang3.Range<Integer> portRange) throws JettyWrapper.JettyWrapperException
public void stop()
public URI getUri()
public void waitUntilStarted(int timeoutMillis)
throws JettyWrapper.JettyWrapperException
public void blockUntilInterrupted()
protected org.apache.maven.plugin.logging.Log getLog()
Copyright © 2002–2018 CoreMedia AG. All rights reserved.