public class JettyLauncher extends Object
Modifier and Type | Field and Description |
---|---|
static String |
JETTYSERVER_TESTMODE_ATTRIB
The name of an attribute we set in the ServletContext to indicate to the webapp
that it is running within unit tests, in case it needs to alter its configuration
or behavior.
|
Constructor and Description |
---|
JettyLauncher() |
JettyLauncher(int port) |
JettyLauncher(int port,
String contextName) |
JettyLauncher(int port,
String contextName,
Class<? extends javax.servlet.Servlet> servletClass) |
JettyLauncher(int port,
String contextName,
String relativeWebappRoot) |
JettyLauncher(int port,
String contextName,
String relativeWebappRoots,
Class<? extends javax.servlet.Servlet> servletClass) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
contextStartupFailed() |
protected org.eclipse.jetty.server.Server |
createServer() |
org.eclipse.jetty.servlet.ServletContextHandler |
getContext() |
String |
getContextName() |
int |
getPort() |
org.eclipse.jetty.server.Server |
getServer() |
boolean |
isFailOnContextFailure() |
boolean |
isStarted() |
boolean |
isTestMode() |
static void |
main(String[] args) |
protected void |
setBaseDirSystemProperty() |
void |
setContextName(String contextName) |
void |
setFailOnContextFailure(boolean failOnContextFailure) |
void |
setPort(int port) |
void |
setTestMode(boolean t) |
void |
start() |
void |
stop() |
String |
toString() |
public static final String JETTYSERVER_TESTMODE_ATTRIB
public JettyLauncher()
public JettyLauncher(int port)
public JettyLauncher(int port, String contextName)
public JettyLauncher(int port, String contextName, String relativeWebappRoot)
public JettyLauncher(int port, String contextName, Class<? extends javax.servlet.Servlet> servletClass)
public JettyLauncher(int port, String contextName, String relativeWebappRoots, Class<? extends javax.servlet.Servlet> servletClass)
public void setTestMode(boolean t)
public boolean isTestMode()
public org.eclipse.jetty.server.Server getServer()
public org.eclipse.jetty.servlet.ServletContextHandler getContext()
public boolean isStarted()
protected org.eclipse.jetty.server.Server createServer()
protected void setBaseDirSystemProperty()
protected boolean contextStartupFailed() throws Exception
Exception
public String getContextName()
public void setContextName(String contextName)
public int getPort()
public void setPort(int port)
public boolean isFailOnContextFailure()
public void setFailOnContextFailure(boolean failOnContextFailure)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.