org.codehaus.cargo.container.jetty
Class Jetty5xEmbeddedStandaloneLocalConfiguration

java.lang.Object
  extended by org.codehaus.cargo.util.log.LoggedObject
      extended by org.codehaus.cargo.container.spi.configuration.AbstractConfiguration
          extended by org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration
              extended by org.codehaus.cargo.container.spi.configuration.AbstractStandaloneLocalConfiguration
                  extended by org.codehaus.cargo.container.jetty.internal.AbstractJettyStandaloneLocalConfiguration
                      extended by org.codehaus.cargo.container.jetty.Jetty5xEmbeddedStandaloneLocalConfiguration
All Implemented Interfaces:
Configuration, LocalConfiguration, StandaloneLocalConfiguration, ContainerConfiguration, Loggable

public class Jetty5xEmbeddedStandaloneLocalConfiguration
extends AbstractJettyStandaloneLocalConfiguration

A mostly canned configuration for a Jetty 5.x running embedded. User uses properties to minimally customize the config.

Version:
$Id: Jetty5xEmbeddedStandaloneLocalConfiguration.java 1163 2006-07-31 09:19:12Z vmassol $

Field Summary
 
Fields inherited from class org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration
RESOURCE_PATH
 
Constructor Summary
Jetty5xEmbeddedStandaloneLocalConfiguration(java.lang.String dir)
          
 
Method Summary
protected  void activateLogging(LocalContainer container)
          Configure the logging for the Jetty container.
 ConfigurationCapability getCapability()
          
 java.lang.String toString()
          
 
Methods inherited from class org.codehaus.cargo.container.jetty.internal.AbstractJettyStandaloneLocalConfiguration
doConfigure
 
Methods inherited from class org.codehaus.cargo.container.spi.configuration.AbstractStandaloneLocalConfiguration
createFilterChain, getType, setupConfigurationDir, verify
 
Methods inherited from class org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration
addDeployable, configure, getAntUtils, getDeployables, getFileHandler, getHome, getResourceUtils, setFileHandler
 
Methods inherited from class org.codehaus.cargo.container.spi.configuration.AbstractConfiguration
getProperties, getPropertyValue, setProperty
 
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, wait, wait, wait
 
Methods inherited from interface org.codehaus.cargo.container.configuration.LocalConfiguration
addDeployable, configure, getDeployables, getHome
 
Methods inherited from interface org.codehaus.cargo.container.configuration.Configuration
getProperties, getPropertyValue, setProperty
 
Methods inherited from interface org.codehaus.cargo.util.log.Loggable
getLogger, setLogger
 

Constructor Detail

Jetty5xEmbeddedStandaloneLocalConfiguration

public Jetty5xEmbeddedStandaloneLocalConfiguration(java.lang.String dir)

See Also:
AbstractJettyStandaloneLocalConfiguration.AbstractJettyStandaloneLocalConfiguration(String)
Method Detail

getCapability

public ConfigurationCapability getCapability()

Specified by:
getCapability in interface Configuration
Specified by:
getCapability in class AbstractJettyStandaloneLocalConfiguration
See Also:
Configuration.getCapability()

activateLogging

protected void activateLogging(LocalContainer container)
                        throws java.lang.Exception
Configure the logging for the Jetty container. For this standalone config, Jetty's internal logging mechanism will be used, iff the user has configured an output file. Otherwise, it is assumed that the user wants to use the JCL discovery mechanism and will therefore be using other means of configuring logging. TODO this setup might be done a little late in the startup sequence - some log messages may already have come out on stderr. Turn on the logging for the container.

Specified by:
activateLogging in class AbstractJettyStandaloneLocalConfiguration
Parameters:
container - the container for which to establish logging
Throws:
java.lang.Exception - on error
See Also:
AbstractJettyStandaloneLocalConfiguration.activateLogging(org.codehaus.cargo.container.LocalContainer)

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2004-2011 Codehaus. All Rights Reserved.