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,
Filter filter) |
void |
addServlet(String pathSpec,
Servlet servlet) |
void |
addUser(String user,
String password) |
int |
getHttpPort() |
org.mortbay.jetty.Server |
getServer() |
org.mortbay.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, Servlet servlet)
public org.mortbay.jetty.Server getServer()
public org.mortbay.jetty.webapp.WebAppContext getWebappContext()
public int getHttpPort()
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.