public class ServerFixture extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SERVER_HOST |
static String |
SERVER_ROOT_RESOURCE_PATH |
static String |
SERVER_SSL_KEYSTORE_PASSWORD |
static String |
SERVER_SSL_KEYSTORE_RESOURCE_PATH |
Constructor and Description |
---|
ServerFixture(boolean ssl) |
Modifier and Type | Method and Description |
---|---|
void |
addFilter(String pathSpec,
javax.servlet.Filter filter) |
void |
addServlet(String pathSpec,
javax.servlet.Servlet servlet) |
void |
addUser(String user,
String password) |
int |
getHttpPort() |
org.eclipse.jetty.server.Server |
getServer() |
org.eclipse.jetty.webapp.WebAppContext |
getWebappContext() |
void |
start() |
void |
stop() |
public static final String SERVER_ROOT_RESOURCE_PATH
public static final String SERVER_SSL_KEYSTORE_RESOURCE_PATH
public static final String SERVER_SSL_KEYSTORE_PASSWORD
public static final String SERVER_HOST
public ServerFixture(boolean ssl) throws URISyntaxException, IOException
URISyntaxException
IOException
public void addServlet(String pathSpec, javax.servlet.Servlet servlet)
public org.eclipse.jetty.server.Server getServer()
public org.eclipse.jetty.webapp.WebAppContext getWebappContext()
public int getHttpPort()
Copyright © 2003–2022 The Apache Software Foundation. All rights reserved.