Code and Javadocs cleanup.

This commit is contained in:
Simone Bordet 2016-09-14 20:42:38 +02:00
parent 61cd8d5379
commit d2ddf5f5ad
1 changed files with 1 additions and 23 deletions

View File

@ -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;
@ -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);
@ -89,11 +79,6 @@ public abstract class AbstractTestServer
((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);