public class TestServer extends Object
Modifier and Type | Field and Description |
---|---|
protected static int |
__workers |
protected SessionCacheFactory |
_cacheFactory |
protected Object |
_config |
protected ContextHandlerCollection |
_contexts |
protected int |
_maxInactivePeriod |
protected int |
_scavengePeriod |
protected Server |
_server |
protected SessionIdManager |
_sessionIdManager |
protected SessionDataStoreFactory |
_storeFactory |
static int |
DEFAULT_EVICTIONPOLICY |
static int |
DEFAULT_MAX_INACTIVE |
static int |
DEFAULT_SCAVENGE_SEC |
Constructor and Description |
---|
TestServer(int port,
int maxInactivePeriod,
int scavengePeriod,
SessionCacheFactory cacheFactory,
SessionDataStoreFactory storeFactory) |
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() |
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 _scavengePeriod
protected final ContextHandlerCollection _contexts
protected SessionIdManager _sessionIdManager
protected Object _config
protected SessionCacheFactory _cacheFactory
protected SessionDataStoreFactory _storeFactory
public TestServer(int port, int maxInactivePeriod, int scavengePeriod, SessionCacheFactory cacheFactory, SessionDataStoreFactory storeFactory) throws Exception
Exception
public SessionIdManager newSessionIdManager()
public SessionHandler newSessionHandler() throws Exception
Exception
public HouseKeeper getHouseKeeper()
public int getPort()
public ServletContextHandler addContext(String contextPath) throws Exception
Exception
public WebAppContext addWebAppContext(String warPath, String contextPath) throws Exception
Exception
public Server getServer()
Copyright © 1995–2017 Webtide. All rights reserved.