Class Jetty12xEmbeddedStandaloneLocalConfiguration
- 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.Jetty6xEmbeddedStandaloneLocalConfiguration
-
- org.codehaus.cargo.container.jetty.Jetty7xEmbeddedStandaloneLocalConfiguration
-
- org.codehaus.cargo.container.jetty.Jetty8xEmbeddedStandaloneLocalConfiguration
-
- org.codehaus.cargo.container.jetty.Jetty9xEmbeddedStandaloneLocalConfiguration
-
- org.codehaus.cargo.container.jetty.Jetty10xEmbeddedStandaloneLocalConfiguration
-
- org.codehaus.cargo.container.jetty.Jetty11xEmbeddedStandaloneLocalConfiguration
-
- org.codehaus.cargo.container.jetty.Jetty12xEmbeddedStandaloneLocalConfiguration
-
- All Implemented Interfaces:
Configuration,LocalConfiguration,StandaloneLocalConfiguration,ContainerConfiguration,Loggable
public class Jetty12xEmbeddedStandaloneLocalConfiguration extends Jetty11xEmbeddedStandaloneLocalConfiguration
A mostly canned configuration for an embedded Jetty 12.x instance.
-
-
Field Summary
-
Fields inherited from class org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration
RESOURCE_PATH
-
-
Constructor Summary
Constructors Constructor Description Jetty12xEmbeddedStandaloneLocalConfiguration(String dir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidactivateLogging(LocalContainer container)Turn on the logging for the container.voiddoConfigure(LocalContainer container)Implementation ofLocalConfiguration.configure(LocalContainer)that all local configuration using this class must implement.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.spi.configuration.AbstractStandaloneLocalConfiguration
addXmlReplacement, addXmlReplacement, addXmlReplacement, addXmlReplacement, configureFiles, getType, getXmlReplacements, performXmlReplacements, removeXmlReplacement, removeXmlReplacement, replaceInFile, setupConfigurationDir, verify
-
Methods inherited from class org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration
addDataSource, 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.AbstractConfiguration
getProperties, setProperty
-
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger
-
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.Configuration
getProperties, getPropertyValue, setProperty
-
Methods inherited from interface org.codehaus.cargo.container.configuration.LocalConfiguration
addDataSource, addDeployable, addResource, addUser, applyPortOffset, configure, getDataSources, getDeployables, getFileHandler, getFileProperties, getHome, getResources, getUsers, isOffsetApplied, revertPortOffset, setConfigFileProperty, setFileHandler, setFileProperty
-
-
-
-
Constructor Detail
-
Jetty12xEmbeddedStandaloneLocalConfiguration
public Jetty12xEmbeddedStandaloneLocalConfiguration(String dir)
-
-
Method Detail
-
getCapability
public ConfigurationCapability getCapability()
- Specified by:
getCapabilityin interfaceConfiguration- Overrides:
getCapabilityin classJetty6xEmbeddedStandaloneLocalConfiguration- Returns:
- the
ConfigurationCapabilityof the configuration in term of properties it supports, etc
-
doConfigure
public void doConfigure(LocalContainer container) throws Exception
Implementation ofLocalConfiguration.configure(LocalContainer)that all local configuration using this class must implement. This provides the ability to perform generic actions before and after the container-specific implementation. Another way would be to use AOP...- Overrides:
doConfigurein classJetty6xEmbeddedStandaloneLocalConfiguration- Parameters:
container- the container to configure- Throws:
Exception- if any error is raised during the configuration
-
getWebdefaultXmlPath
protected String getWebdefaultXmlPath()
Different versions of Jetty use different paths and file names for thewebdefault.xmlfile. This method aims at differentiating these.- Overrides:
getWebdefaultXmlPathin classJetty7xEmbeddedStandaloneLocalConfiguration- Returns:
- The
webdefault.xmlpath
-
activateLogging
protected void activateLogging(LocalContainer container)
Turn on the logging for the container.- Overrides:
activateLoggingin classJetty11xEmbeddedStandaloneLocalConfiguration- Parameters:
container- the container for which to establish logging
-
toString
public String toString()
- Overrides:
toStringin classJetty11xEmbeddedStandaloneLocalConfiguration
-
-