org.eclipse.jetty.server.session
Class AbstractTestServer

java.lang.Object
  extended by org.eclipse.jetty.server.session.AbstractTestServer

public abstract class AbstractTestServer
extends Object

AbstractTestServer


Field Summary
protected  ContextHandlerCollection _contexts
           
protected  int _maxInactivePeriod
           
protected  int _scavengePeriod
           
protected  Server _server
           
protected  SessionIdManager _sessionIdManager
           
 
Constructor Summary
AbstractTestServer(int port)
           
AbstractTestServer(int port, int maxInactivePeriod, int scavengePeriod)
           
 
Method Summary
 ServletContextHandler addContext(String contextPath)
           
 WebAppContext addWebAppContext(String warPath, String contextPath)
           
 int getPort()
           
abstract  SessionHandler newSessionHandler(SessionManager sessionManager)
           
abstract  SessionIdManager newSessionIdManager()
           
abstract  AbstractSessionManager newSessionManager()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_server

protected final Server _server

_maxInactivePeriod

protected final int _maxInactivePeriod

_scavengePeriod

protected final int _scavengePeriod

_contexts

protected final ContextHandlerCollection _contexts

_sessionIdManager

protected SessionIdManager _sessionIdManager
Constructor Detail

AbstractTestServer

public AbstractTestServer(int port)

AbstractTestServer

public AbstractTestServer(int port,
                          int maxInactivePeriod,
                          int scavengePeriod)
Method Detail

newSessionIdManager

public abstract SessionIdManager newSessionIdManager()

newSessionManager

public abstract AbstractSessionManager newSessionManager()

newSessionHandler

public abstract SessionHandler newSessionHandler(SessionManager sessionManager)

start

public void start()
           throws Exception
Throws:
Exception

getPort

public int getPort()

addContext

public ServletContextHandler addContext(String contextPath)

stop

public void stop()
          throws Exception
Throws:
Exception

addWebAppContext

public WebAppContext addWebAppContext(String warPath,
                                      String contextPath)


Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.