org.kuali.rice.test.lifecycles
Class JettyServerLifecycle

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

public class JettyServerLifecycle
extends Object
implements Lifecycle

A lifecycle for running a jetty web server.

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

Nested Class Summary
static class JettyServerLifecycle.ConfigMode
          Enum for dealing with the webapp's Config
 
Field Summary
protected  JettyServer jettyServer
           
 
Constructor Summary
JettyServerLifecycle()
           
JettyServerLifecycle(int port)
           
JettyServerLifecycle(int port, String contextName)
           
JettyServerLifecycle(int port, String contextName, String relativeWebappRoot)
           
 
Method Summary
 JettyServerLifecycle.ConfigMode getConfigMode()
           
static Config getWebappConfig(int port)
           
 boolean isAddWebappResourceLoaders()
           
 boolean isStarted()
           
 boolean isTestMode()
           
 void setAddWebappResourceLoaders(boolean addWebappResourceLoaders)
           
 void setConfigMode(JettyServerLifecycle.ConfigMode configMode)
           
 void setTestMode(boolean t)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jettyServer

protected JettyServer jettyServer
Constructor Detail

JettyServerLifecycle

public JettyServerLifecycle()

JettyServerLifecycle

public JettyServerLifecycle(int port)

JettyServerLifecycle

public JettyServerLifecycle(int port,
                            String contextName)

JettyServerLifecycle

public JettyServerLifecycle(int port,
                            String contextName,
                            String relativeWebappRoot)
Method Detail

getWebappConfig

public static Config getWebappConfig(int port)

setTestMode

public void setTestMode(boolean t)

isTestMode

public boolean isTestMode()

getConfigMode

public JettyServerLifecycle.ConfigMode getConfigMode()

setConfigMode

public void setConfigMode(JettyServerLifecycle.ConfigMode configMode)

isAddWebappResourceLoaders

public boolean isAddWebappResourceLoaders()

setAddWebappResourceLoaders

public void setAddWebappResourceLoaders(boolean addWebappResourceLoaders)

isStarted

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

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


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.