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)
           
AbstractTestServer(int port, int maxInactivePeriod, int scavengePeriod, String sessionIdMgrConfig)
           
 
Method Summary
 ServletContextHandler addContext(String contextPath)
           
 WebAppContext addWebAppContext(String warPath, String contextPath)
           
 int getPort()
           
 Server getServer()
           
 void join()
           
abstract  SessionHandler newSessionHandler(SessionManager sessionManager)
           
abstract  SessionIdManager newSessionIdManager(String config)
           
abstract  SessionManager 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)

AbstractTestServer

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

newSessionIdManager

public abstract SessionIdManager newSessionIdManager(String config)

newSessionManager

public abstract SessionManager 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

join

public void join()
          throws Exception
Throws:
Exception

addWebAppContext

public WebAppContext addWebAppContext(String warPath,
                                      String contextPath)

getServer

public Server getServer()


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