org.codehaus.cargo.container.jetty.internal
Class AbstractJettyEmbeddedLocalContainer

java.lang.Object
  extended by org.codehaus.cargo.util.log.LoggedObject
      extended by org.codehaus.cargo.container.spi.AbstractContainer
          extended by org.codehaus.cargo.container.spi.AbstractLocalContainer
              extended by org.codehaus.cargo.container.spi.AbstractEmbeddedLocalContainer
                  extended by org.codehaus.cargo.container.jetty.internal.AbstractJettyEmbeddedLocalContainer
All Implemented Interfaces:
org.codehaus.cargo.container.Container, org.codehaus.cargo.container.EmbeddedLocalContainer, org.codehaus.cargo.container.internal.RunnableContainer, org.codehaus.cargo.container.LocalContainer, org.codehaus.cargo.util.log.Loggable
Direct Known Subclasses:
AbstractJetty4x5xEmbeddedLocalContainer, Jetty6xEmbeddedLocalContainer

public abstract class AbstractJettyEmbeddedLocalContainer
extends org.codehaus.cargo.container.spi.AbstractEmbeddedLocalContainer

Common code for all Jetty embedded container implementations.

Version:
$Id: AbstractJettyEmbeddedLocalContainer.java 998 2006-04-09 14:55:31Z vmassol $

Field Summary
protected  java.lang.Object server
          Jetty Server object.
 
Constructor Summary
AbstractJettyEmbeddedLocalContainer(org.codehaus.cargo.container.configuration.LocalConfiguration configuration)
          
 
Method Summary
protected  void createServerObject()
          Create a Jetty Server Object.
protected  void doStop()
          
 org.codehaus.cargo.container.ContainerCapability getCapability()
          
 java.lang.Object getServer()
           
 
Methods inherited from class org.codehaus.cargo.container.spi.AbstractEmbeddedLocalContainer
doStart, getClassLoader, getType, setClassLoader, startInternal, stopInternal
 
Methods inherited from class org.codehaus.cargo.container.spi.AbstractLocalContainer
getConfiguration, getOutput, getState, getTimeout, isAppend, setAppend, setConfiguration, setOutput, setState, setTimeout, start, stop, verify, waitForCompletion
 
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.cargo.container.LocalContainer
getConfiguration, setConfiguration
 
Methods inherited from interface org.codehaus.cargo.container.Container
getId, getName, getState
 
Methods inherited from interface org.codehaus.cargo.util.log.Loggable
getLogger, setLogger
 
Methods inherited from interface org.codehaus.cargo.container.internal.RunnableContainer
getOutput, getTimeout, isAppend, setAppend, setOutput, setTimeout, start, stop
 

Field Detail

server

protected java.lang.Object server
Jetty Server object. Note that we use an Object as we're calling the Jetty API by introspection only. This is order not to have any dependency with the Jetty jar for building.

Constructor Detail

AbstractJettyEmbeddedLocalContainer

public AbstractJettyEmbeddedLocalContainer(org.codehaus.cargo.container.configuration.LocalConfiguration configuration)

See Also:
AbstractInstalledLocalContainer.AbstractInstalledLocalContainer(org.codehaus.cargo.container.configuration.LocalConfiguration)
Method Detail

getServer

public java.lang.Object getServer()
Returns:
the Jetty Server object

createServerObject

protected void createServerObject()
                           throws java.lang.Exception
Create a Jetty Server Object.

Throws:
java.lang.Exception - in case of error

getCapability

public org.codehaus.cargo.container.ContainerCapability getCapability()

See Also:
Container.getCapability()

doStop

protected void doStop()
               throws java.lang.Exception

Specified by:
doStop in class org.codehaus.cargo.container.spi.AbstractEmbeddedLocalContainer
Throws:
java.lang.Exception
See Also:
AbstractEmbeddedLocalContainer.doStop()


Copyright © 2004-2010 Codehaus. All Rights Reserved.