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.servlet.ServletContextHandler;
|
||||||
import org.eclipse.jetty.webapp.WebAppContext;
|
import org.eclipse.jetty.webapp.WebAppContext;
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* AbstractTestServer
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public abstract class AbstractTestServer
|
public abstract class AbstractTestServer
|
||||||
{
|
{
|
||||||
public static int DEFAULT_MAX_INACTIVE = 30;
|
public static int DEFAULT_MAX_INACTIVE = 30;
|
||||||
|
@ -48,8 +42,6 @@ public abstract class AbstractTestServer
|
||||||
private HouseKeeper _housekeeper;
|
private HouseKeeper _housekeeper;
|
||||||
protected Object _config;
|
protected Object _config;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public static String extractSessionId (String sessionCookie)
|
public static String extractSessionId (String sessionCookie)
|
||||||
{
|
{
|
||||||
if (sessionCookie == null)
|
if (sessionCookie == null)
|
||||||
|
@ -66,8 +58,6 @@ public abstract class AbstractTestServer
|
||||||
return sessionCookie;
|
return sessionCookie;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public AbstractTestServer(int port, int maxInactivePeriod, int scavengePeriod, int evictionPolicy)
|
public AbstractTestServer(int port, int maxInactivePeriod, int scavengePeriod, int evictionPolicy)
|
||||||
{
|
{
|
||||||
this (port, maxInactivePeriod, scavengePeriod, evictionPolicy, null);
|
this (port, maxInactivePeriod, scavengePeriod, evictionPolicy, null);
|
||||||
|
@ -89,11 +79,6 @@ public abstract class AbstractTestServer
|
||||||
((DefaultSessionIdManager)_sessionIdManager).setSessionHouseKeeper(_housekeeper);
|
((DefaultSessionIdManager)_sessionIdManager).setSessionHouseKeeper(_housekeeper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public SessionIdManager newSessionIdManager()
|
public SessionIdManager newSessionIdManager()
|
||||||
{
|
{
|
||||||
DefaultSessionIdManager idManager = new DefaultSessionIdManager(getServer());
|
DefaultSessionIdManager idManager = new DefaultSessionIdManager(getServer());
|
||||||
|
@ -101,10 +86,8 @@ public abstract class AbstractTestServer
|
||||||
return idManager;
|
return idManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public abstract SessionHandler newSessionHandler();
|
public abstract SessionHandler newSessionHandler();
|
||||||
|
|
||||||
|
|
||||||
public void start() throws Exception
|
public void start() throws Exception
|
||||||
{
|
{
|
||||||
// server -> contexts collection -> context handler -> session handler -> servlet handler
|
// server -> contexts collection -> context handler -> session handler -> servlet handler
|
||||||
|
@ -139,11 +122,6 @@ public abstract class AbstractTestServer
|
||||||
_server.stop();
|
_server.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void join() throws Exception
|
|
||||||
{
|
|
||||||
_server.join();
|
|
||||||
}
|
|
||||||
|
|
||||||
public WebAppContext addWebAppContext(String warPath, String contextPath)
|
public WebAppContext addWebAppContext(String warPath, String contextPath)
|
||||||
{
|
{
|
||||||
WebAppContext context = new WebAppContext(_contexts, warPath, contextPath);
|
WebAppContext context = new WebAppContext(_contexts, warPath, contextPath);
|
||||||
|
|
Loading…
Reference in New Issue