org.kuali.rice.ksb
Class BaseTestServer

java.lang.Object
  extended by org.kuali.rice.ksb.BaseTestServer
All Implemented Interfaces:
Lifecycle
Direct Known Subclasses:
TestClient1, TestClient2

public abstract class BaseTestServer
extends Object
implements Lifecycle

Abstract class to provide convenience methods for starting and stopping a Jetty Server instance.

Since:
0.9
Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
BaseTestServer()
           
 
Method Summary
protected abstract  org.eclipse.jetty.server.Server createServer()
           
 org.eclipse.jetty.server.Server getServer()
           
 boolean isStarted()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseTestServer

public BaseTestServer()
Method Detail

createServer

protected abstract org.eclipse.jetty.server.Server createServer()

getServer

public org.eclipse.jetty.server.Server getServer()

start

public void start()
           throws Exception
Specified by:
start in interface Lifecycle
Throws:
Exception

stop

public void stop()
          throws Exception
Specified by:
stop in interface Lifecycle
Throws:
Exception

isStarted

public boolean isStarted()
Specified by:
isStarted in interface Lifecycle


Copyright © 2005-2011 The Kuali Foundation. All Rights Reserved.