org.kuali.rice.test.lifecycles
Class JettyServerLifecycle

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

public class JettyServerLifecycle
extends Object
implements org.kuali.rice.core.api.lifecycle.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  JettyLauncher 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 org.kuali.rice.core.api.config.property.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 JettyLauncher 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 org.kuali.rice.core.api.config.property.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 org.kuali.rice.core.api.lifecycle.Lifecycle

start

public void start()
           throws Exception
Specified by:
start in interface org.kuali.rice.core.api.lifecycle.Lifecycle
Throws:
Exception

stop

public void stop()
          throws Exception
Specified by:
stop in interface org.kuali.rice.core.api.lifecycle.Lifecycle
Throws:
Exception


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