Class Jetty5xEmbeddedStandaloneLocalConfiguration
- java.lang.Object
- 
- org.codehaus.cargo.util.log.LoggedObject
- 
- org.codehaus.cargo.container.spi.configuration.AbstractConfiguration
- 
- org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration
- 
- org.codehaus.cargo.container.spi.configuration.AbstractStandaloneLocalConfiguration
- 
- org.codehaus.cargo.container.jetty.internal.AbstractJettyEmbeddedStandaloneLocalConfiguration
- 
- org.codehaus.cargo.container.jetty.Jetty5xEmbeddedStandaloneLocalConfiguration
 
 
 
 
 
 
- 
- All Implemented Interfaces:
- Configuration,- LocalConfiguration,- StandaloneLocalConfiguration,- ContainerConfiguration,- Loggable
 
 public class Jetty5xEmbeddedStandaloneLocalConfiguration extends AbstractJettyEmbeddedStandaloneLocalConfiguration A mostly canned configuration for a Jetty 5.x running embedded. User uses properties to minimally customize the config.
- 
- 
Field Summary- 
Fields inherited from class org.codehaus.cargo.container.spi.configuration.AbstractLocalConfigurationRESOURCE_PATH
 
- 
 - 
Constructor SummaryConstructors Constructor Description Jetty5xEmbeddedStandaloneLocalConfiguration(String dir)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidactivateLogging(LocalContainer container)Configure the logging for the Jetty container.ConfigurationCapabilitygetCapability()protected StringgetWebdefaultXmlPath()Different versions of Jetty use different paths and file names for thewebdefault.xmlfile.StringtoString()- 
Methods inherited from class org.codehaus.cargo.container.jetty.internal.AbstractJettyEmbeddedStandaloneLocalConfigurationdoConfigure
 - 
Methods inherited from class org.codehaus.cargo.container.spi.configuration.AbstractStandaloneLocalConfigurationaddXmlReplacement, addXmlReplacement, addXmlReplacement, addXmlReplacement, configureFiles, getType, getXmlReplacements, performXmlReplacements, removeXmlReplacement, removeXmlReplacement, replaceInFile, setupConfigurationDir, verify
 - 
Methods inherited from class org.codehaus.cargo.container.spi.configuration.AbstractLocalConfigurationaddDataSource, addDataSourcesFromProperties, addDeployable, addResource, addResourcesFromProperties, addUser, addUsersFromProperties, applyPortOffset, applyPortOffset, collectUnsupportedDataSourcesAndThrowException, collectUnsupportedResourcesAndThrowException, configure, flagOffsetApplied, getDataSources, getDeployables, getDestDirectoryLocation, getDestFileLocation, getFileHandler, getFileProperties, getHome, getPropertyValue, getReplacements, getResources, getResourceUtils, getUsers, isOffsetApplied, isOffsetApplied, parsePropertiesForPendingConfiguration, revertPortOffset, revertPortOffset, setConfigFileProperty, setFileHandler, setFileProperty, setLogger
 - 
Methods inherited from class org.codehaus.cargo.container.spi.configuration.AbstractConfigurationgetProperties, setProperty
 - 
Methods inherited from class org.codehaus.cargo.util.log.LoggedObjectgetLogger
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.codehaus.cargo.container.configuration.ConfigurationgetProperties, getPropertyValue, setProperty
 - 
Methods inherited from interface org.codehaus.cargo.container.configuration.LocalConfigurationaddDataSource, addDeployable, addResource, addUser, applyPortOffset, configure, getDataSources, getDeployables, getFileHandler, getFileProperties, getHome, getResources, getUsers, isOffsetApplied, revertPortOffset, setConfigFileProperty, setFileHandler, setFileProperty
 
- 
 
- 
- 
- 
Constructor Detail- 
Jetty5xEmbeddedStandaloneLocalConfigurationpublic Jetty5xEmbeddedStandaloneLocalConfiguration(String dir) 
 
- 
 - 
Method Detail- 
getWebdefaultXmlPathprotected String getWebdefaultXmlPath() Different versions of Jetty use different paths and file names for thewebdefault.xmlfile. This method aims at differentiating these.- Specified by:
- getWebdefaultXmlPathin class- AbstractJettyEmbeddedStandaloneLocalConfiguration
- Returns:
- The webdefault.xmlpath
 
 - 
getCapabilitypublic ConfigurationCapability getCapability() - Returns:
- the ConfigurationCapabilityof the configuration in term of properties it supports, etc
 
 - 
activateLoggingprotected void activateLogging(LocalContainer container) throws 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:
- activateLoggingin class- AbstractJettyEmbeddedStandaloneLocalConfiguration
- Parameters:
- container- the container for which to establish logging
- Throws:
- Exception- on error
 
 
- 
 
-