public abstract class AbstractTestServer extends Object
Modifier and Type | Field and Description |
---|---|
protected static int |
__workers |
protected Object |
_config |
protected ContextHandlerCollection |
_contexts |
protected int |
_evictionPolicy |
protected int |
_maxInactivePeriod |
protected int |
_scavengePeriod |
protected Server |
_server |
protected SessionIdManager |
_sessionIdManager |
static int |
DEFAULT_EVICTIONPOLICY |
static int |
DEFAULT_MAX_INACTIVE |
static int |
DEFAULT_SCAVENGE_SEC |
Constructor and Description |
---|
AbstractTestServer(int port,
int maxInactivePeriod,
int scavengePeriod,
int evictionPolicy) |
AbstractTestServer(int port,
int maxInactivePeriod,
int scavengePeriod,
int evictionPolicy,
Object cfg) |
Modifier and Type | Method and Description |
---|---|
ServletContextHandler |
addContext(String contextPath) |
WebAppContext |
addWebAppContext(String warPath,
String contextPath) |
static String |
extractSessionId(String sessionCookie) |
HouseKeeper |
getHouseKeeper() |
int |
getPort() |
Server |
getServer() |
abstract SessionHandler |
newSessionHandler() |
SessionIdManager |
newSessionIdManager() |
void |
start() |
void |
stop() |
public static int DEFAULT_MAX_INACTIVE
public static int DEFAULT_SCAVENGE_SEC
public static int DEFAULT_EVICTIONPOLICY
protected static int __workers
protected final Server _server
protected final int _maxInactivePeriod
protected final int _evictionPolicy
protected final int _scavengePeriod
protected final ContextHandlerCollection _contexts
protected SessionIdManager _sessionIdManager
protected Object _config
public AbstractTestServer(int port, int maxInactivePeriod, int scavengePeriod, int evictionPolicy) throws Exception
Exception
public SessionIdManager newSessionIdManager()
public abstract SessionHandler newSessionHandler()
public HouseKeeper getHouseKeeper()
public int getPort()
public ServletContextHandler addContext(String contextPath)
public WebAppContext addWebAppContext(String warPath, String contextPath)
public Server getServer()
Copyright © 1995–2016 Webtide. All rights reserved.