Class Tomcat6xStandaloneLocalConfiguration
- 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.spi.configuration.builder.AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilder
-
- org.codehaus.cargo.container.tomcat.internal.AbstractCatalinaStandaloneLocalConfiguration
-
- org.codehaus.cargo.container.tomcat.Tomcat5xStandaloneLocalConfiguration
-
- org.codehaus.cargo.container.tomcat.Tomcat6xStandaloneLocalConfiguration
-
- All Implemented Interfaces:
Configuration,DataSourceSupport,ResourceSupport,LocalConfiguration,StandaloneLocalConfiguration,ContainerConfiguration,Loggable
- Direct Known Subclasses:
Tomcat7xStandaloneLocalConfiguration
public class Tomcat6xStandaloneLocalConfiguration extends Tomcat5xStandaloneLocalConfiguration
Catalina standaloneContainerConfigurationimplementation.
-
-
Field Summary
-
Fields inherited from class org.codehaus.cargo.container.tomcat.Tomcat5xStandaloneLocalConfiguration
configurationBuilder
-
Fields inherited from class org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration
RESOURCE_PATH
-
-
Constructor Summary
Constructors Constructor Description Tomcat6xStandaloneLocalConfiguration(String dir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigureExtraClasspathToken(WAR deployable, Element context)Configures the specified context element with the extra classpath (if any) of the given WAR.protected voidconfigureHttpsConnectorXml()Configure HTTPS connector.protected voiddoConfigure(LocalContainer container)Implementation ofLocalConfiguration.configure(LocalContainer)that all local configuration using this class must implement.ConfigurationCapabilitygetCapability()protected Map<String,String>getCatalinaPropertertiesReplacements()protected StringgetExtraClasspathToken(WAR deployable)Creates the extra classpath XML token.protected voidperformXmlReplacements(LocalContainer container)Perform the XML replacements for the specified container.protected voidsetupManager(LocalContainer container)Setup the manager webapp.StringtoString()-
Methods inherited from class org.codehaus.cargo.container.tomcat.Tomcat5xStandaloneLocalConfiguration
createConfigurationBuilder, createContextToken, getExtraContextAttributes, getOrCreateResourceConfigurationFile, getTomcatLoggingLevel, getXpathForResourcesParent, setupConfFiles
-
Methods inherited from class org.codehaus.cargo.container.tomcat.internal.AbstractCatalinaStandaloneLocalConfiguration
connectorXpath, createDeployer, createTomcatWebappsToken, escapePath, getNamespaces, getOrCreateDataSourceConfigurationFile, getSecurityToken, getXpathForDataSourcesParent, setProperty, setupWebApps
-
Methods inherited from class org.codehaus.cargo.container.spi.configuration.builder.AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilder
configure, configure, configure, configureDataSources, configureResources, writeConfigurationToXpath
-
Methods inherited from class org.codehaus.cargo.container.spi.configuration.AbstractStandaloneLocalConfiguration
addXmlReplacement, addXmlReplacement, addXmlReplacement, addXmlReplacement, configureFiles, getType, getXmlReplacements, 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, 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, getPropertyValueIgnoreSystemProperties
-
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
-
Methods inherited from interface org.codehaus.cargo.container.configuration.LocalConfiguration
addDataSource, addDeployable, addResource, addUser, applyPortOffset, getDataSources, getDeployables, getFileHandler, getFileProperties, getHome, getReplacements, getResources, getUsers, isOffsetApplied, revertPortOffset, setConfigFileProperty, setFileHandler, setFileProperty
-
-
-
-
Constructor Detail
-
Tomcat6xStandaloneLocalConfiguration
public Tomcat6xStandaloneLocalConfiguration(String dir)
-
-
Method Detail
-
getCapability
public ConfigurationCapability getCapability()
- Specified by:
getCapabilityin interfaceConfiguration- Overrides:
getCapabilityin classTomcat5xStandaloneLocalConfiguration- Returns:
- the
ConfigurationCapabilityof the configuration in term of properties it supports, etc
-
doConfigure
protected 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 classAbstractCatalinaStandaloneLocalConfiguration- Parameters:
container- the container to configure- Throws:
Exception- if any error is raised during the configuration
-
setupManager
protected void setupManager(LocalContainer container)
Setup the manager webapp. this does not deploy the manager, if the application is embedded. the path to find the manager application is different between v5 and v6.- Overrides:
setupManagerin classTomcat5xStandaloneLocalConfiguration- Parameters:
container- the container to configure
-
getCatalinaPropertertiesReplacements
protected Map<String,String> getCatalinaPropertertiesReplacements()
- Overrides:
getCatalinaPropertertiesReplacementsin classTomcat5xStandaloneLocalConfiguration- Returns:
- The replacements for
catalina.properties.
-
getExtraClasspathToken
protected String getExtraClasspathToken(WAR deployable)
Creates the extra classpath XML token.- Overrides:
getExtraClasspathTokenin classTomcat5xStandaloneLocalConfiguration- Parameters:
deployable- Deployable to create extra classpath XML token for.- Returns:
- Extra classpath XML token.
-
configureExtraClasspathToken
protected void configureExtraClasspathToken(WAR deployable, Element context)
Description copied from class:Tomcat5xStandaloneLocalConfigurationConfigures the specified context element with the extra classpath (if any) of the given WAR.- Overrides:
configureExtraClasspathTokenin classTomcat5xStandaloneLocalConfiguration- Parameters:
deployable- Deployable to create extra classpath XML token for.context- The context element to configure, must not benull.
-
performXmlReplacements
protected void performXmlReplacements(LocalContainer container)
Perform the XML replacements for the specified container.- Overrides:
performXmlReplacementsin classTomcat5xStandaloneLocalConfiguration- Parameters:
container- the container to configure
-
configureHttpsConnectorXml
protected void configureHttpsConnectorXml()
Configure HTTPS connector.
-
toString
public String toString()
- Overrides:
toStringin classTomcat5xStandaloneLocalConfiguration
-
-