Interface TomcatConfigHelper
- All Known Implementing Classes:
- DefaultTomcatConfigHelper
@Internal
@ParametersAreNonnullByDefault
@ReturnValuesAreNonnullByDefault
public interface TomcatConfigHelper
Reads the Tomcat configuration. Intended only for internal consumption.
- Since:
- 6.2.2, 6.7.0 became an interface
- 
Method SummaryModifier and TypeMethodDescriptionReturns the connector port.Searches the password from the datasource that could be defined in one of the possible XML files.getDatasourceUrl(File xmlFile) Reads the datasource URL attribute from the given XML config file.Returns the Java Runtime installation directory.Deprecated.Returns the potential locations of datasource files.Returns the proxy port defined inserver.xml.booleanisStandardPort(int port) Indicates whether the given port is a standard HTTP port.
- 
Method Details- 
getConnectorPortReturns the connector port.- Returns:
- empty if none is defined
 
- 
getDatasourceCredentialsSearches the password from the datasource that could be defined in one of the possible XML files.- Returns:
- the password if it's defined in a JNDI resource or blank
- Since:
- 6.0
 
- 
getDatasourceUrlReads the datasource URL attribute from the given XML config file.- Parameters:
- xmlFile- the tomcat context.xml file containing the JNDI datasource configuration
- Returns:
- the datasource url attribute, or empty if not found.
 
- 
getJavaRuntimeDirectoryString getJavaRuntimeDirectory()Returns the Java Runtime installation directory. Use this method to ensure that we always use same JRE with Confluence for Synchrony.
- 
getMaxHttpThreadsDeprecated.since 7.12.3 usegetAllMaxHttpThreads()Returns the maximum number of threads that can be used by Tomcat's default (first) HTTP connector.- Returns:
- empty if it can't be determined
 
- 
getAllMaxHttpThreads- Returns:
- see above
- Since:
- 7.12.3 Returns the maximum number of threads that can be used by each of Tomcat's HTTP connectors, and empty if it can't be determined for that particular one
 
- 
getPotentialDatasourceLocationsReturns the potential locations of datasource files.- Returns:
- see above
 
- 
getProxyPortReturns the proxy port defined inserver.xml.- Returns:
- empty if none is defined
 
- 
isStandardPortboolean isStandardPort(int port) Indicates whether the given port is a standard HTTP port.- Returns:
- see above
 
 
- 
getAllMaxHttpThreads()Returns the maximum number of threads that can be used by Tomcat's default (first) HTTP connector.