org.kuali.rice.test
Class BaseTestServer

java.lang.Object
  extended by org.kuali.rice.test.BaseTestServer
All Implemented Interfaces:
Lifecycle

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.mortbay.jetty.Server createServer()
           
 org.mortbay.jetty.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.mortbay.jetty.Server createServer()

getServer

public org.mortbay.jetty.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 © 2004-2012 The Kuali Foundation. All Rights Reserved.