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.Exception
public static java.lang.String extractSessionId(java.lang.String sessionCookie)
public SessionIdManager newSessionIdManager()
public SessionHandler newSessionHandler() throws java.lang.Exception
java.lang.Exception
public void start() throws java.lang.Exception
java.lang.Exception
public HouseKeeper getHouseKeeper()
public int getPort()
public ServletContextHandler addContext(java.lang.String contextPath) throws java.lang.Exception
java.lang.Exception
public void stop() throws java.lang.Exception
java.lang.Exception
public WebAppContext addWebAppContext(java.lang.String warPath, java.lang.String contextPath) throws java.lang.Exception
java.lang.Exception
public Server getServer()
Copyright © 1995–2023 Webtide. All rights reserved.