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.lifecycle.Lifecycle

public class JettyServerLifecycle
extends java.lang.Object
implements org.kuali.rice.core.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  JettyServer jettyServer
           
 
Constructor Summary
JettyServerLifecycle()
           
JettyServerLifecycle(int port)
           
JettyServerLifecycle(int port, java.lang.String contextName)
           
JettyServerLifecycle(int port, java.lang.String contextName, java.lang.String relativeWebappRoot)
           
 
Method Summary
 JettyServerLifecycle.ConfigMode getConfigMode()
           
static org.kuali.rice.core.config.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,
                            java.lang.String contextName)

JettyServerLifecycle

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

getWebappConfig

public static org.kuali.rice.core.config.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.lifecycle.Lifecycle

start

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

stop

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


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