mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-04 04:49:12 +00:00
Code and Javadocs cleanup.
This commit is contained in:
parent
61cd8d5379
commit
d2ddf5f5ad
@ -25,12 +25,6 @@ import org.eclipse.jetty.server.handler.ContextHandlerCollection;
|
||||
import org.eclipse.jetty.servlet.ServletContextHandler;
|
||||
import org.eclipse.jetty.webapp.WebAppContext;
|
||||
|
||||
|
||||
/**
|
||||
* AbstractTestServer
|
||||
*
|
||||
*
|
||||
*/
|
||||
public abstract class AbstractTestServer
|
||||
{
|
||||
public static int DEFAULT_MAX_INACTIVE = 30;
|
||||
@ -38,7 +32,7 @@ public abstract class AbstractTestServer
|
||||
public static int DEFAULT_EVICTIONPOLICY = SessionCache.NEVER_EVICT;
|
||||
|
||||
protected static int __workers=0;
|
||||
|
||||
|
||||
protected final Server _server;
|
||||
protected final int _maxInactivePeriod;
|
||||
protected final int _evictionPolicy;
|
||||
@ -48,8 +42,6 @@ public abstract class AbstractTestServer
|
||||
private HouseKeeper _housekeeper;
|
||||
protected Object _config;
|
||||
|
||||
|
||||
|
||||
public static String extractSessionId (String sessionCookie)
|
||||
{
|
||||
if (sessionCookie == null)
|
||||
@ -66,8 +58,6 @@ public abstract class AbstractTestServer
|
||||
return sessionCookie;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public AbstractTestServer(int port, int maxInactivePeriod, int scavengePeriod, int evictionPolicy)
|
||||
{
|
||||
this (port, maxInactivePeriod, scavengePeriod, evictionPolicy, null);
|
||||
@ -88,12 +78,7 @@ public abstract class AbstractTestServer
|
||||
_housekeeper.setIntervalSec(_scavengePeriod);
|
||||
((DefaultSessionIdManager)_sessionIdManager).setSessionHouseKeeper(_housekeeper);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return
|
||||
*/
|
||||
public SessionIdManager newSessionIdManager()
|
||||
{
|
||||
DefaultSessionIdManager idManager = new DefaultSessionIdManager(getServer());
|
||||
@ -101,10 +86,8 @@ public abstract class AbstractTestServer
|
||||
return idManager;
|
||||
}
|
||||
|
||||
|
||||
public abstract SessionHandler newSessionHandler();
|
||||
|
||||
|
||||
public void start() throws Exception
|
||||
{
|
||||
// server -> contexts collection -> context handler -> session handler -> servlet handler
|
||||
@ -139,11 +122,6 @@ public abstract class AbstractTestServer
|
||||
_server.stop();
|
||||
}
|
||||
|
||||
public void join() throws Exception
|
||||
{
|
||||
_server.join();
|
||||
}
|
||||
|
||||
public WebAppContext addWebAppContext(String warPath, String contextPath)
|
||||
{
|
||||
WebAppContext context = new WebAppContext(_contexts, warPath, contextPath);
|
||||
|
Loading…
x
Reference in New Issue
Block a user