public class TestServer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
__workers |
protected SessionCacheFactory |
_cacheFactory |
protected java.lang.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(java.lang.String contextPath) |
WebAppContext |
addWebAppContext(java.lang.String warPath,
java.lang.String contextPath) |
static java.lang.String |
extractSessionId(java.lang.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 java.lang.Object _config
protected SessionCacheFactory _cacheFactory
protected SessionDataStoreFactory _storeFactory
public TestServer(int port,
int maxInactivePeriod,
int scavengePeriod,
SessionCacheFactory cacheFactory,
SessionDataStoreFactory storeFactory)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.String extractSessionId(java.lang.String sessionCookie)
public SessionIdManager newSessionIdManager()
public SessionHandler newSessionHandler() throws java.lang.Exception
java.lang.Exceptionpublic void start()
throws java.lang.Exception
java.lang.Exceptionpublic HouseKeeper getHouseKeeper()
public int getPort()
public ServletContextHandler addContext(java.lang.String contextPath) throws java.lang.Exception
java.lang.Exceptionpublic void stop()
throws java.lang.Exception
java.lang.Exceptionpublic WebAppContext addWebAppContext(java.lang.String warPath, java.lang.String contextPath) throws java.lang.Exception
java.lang.Exceptionpublic Server getServer()
Copyright © 1995–2021 Webtide. All rights reserved.