public abstract class AbstractTestServer extends Object
Modifier and Type | Field and Description |
---|---|
protected ContextHandlerCollection |
_contexts |
protected int |
_maxInactivePeriod |
protected int |
_scavengePeriod |
protected Server |
_server |
protected SessionIdManager |
_sessionIdManager |
Constructor and Description |
---|
AbstractTestServer(int port) |
AbstractTestServer(int port,
int maxInactivePeriod,
int scavengePeriod) |
AbstractTestServer(int port,
int maxInactivePeriod,
int scavengePeriod,
String sessionIdMgrConfig) |
Modifier and Type | Method and Description |
---|---|
ServletContextHandler |
addContext(String contextPath) |
WebAppContext |
addWebAppContext(String warPath,
String contextPath) |
int |
getPort() |
Server |
getServer() |
void |
join() |
abstract SessionHandler |
newSessionHandler(SessionManager sessionManager) |
abstract SessionIdManager |
newSessionIdManager(String config) |
abstract SessionManager |
newSessionManager() |
void |
start() |
void |
stop() |
protected final Server _server
protected final int _maxInactivePeriod
protected final int _scavengePeriod
protected final ContextHandlerCollection _contexts
protected SessionIdManager _sessionIdManager
public AbstractTestServer(int port)
public AbstractTestServer(int port, int maxInactivePeriod, int scavengePeriod)
public AbstractTestServer(int port, int maxInactivePeriod, int scavengePeriod, String sessionIdMgrConfig)
public abstract SessionIdManager newSessionIdManager(String config)
public abstract SessionManager newSessionManager()
public abstract SessionHandler newSessionHandler(SessionManager sessionManager)
public int getPort()
public ServletContextHandler addContext(String contextPath)
public WebAppContext addWebAppContext(String warPath, String contextPath)
public Server getServer()
Copyright © 1995-2015 Webtide. All Rights Reserved.