@Internal public class DefaultTomcatConfigHelper extends Object implements TomcatConfigHelper
TomcatConfigHelper
.Constructor and Description |
---|
DefaultTomcatConfigHelper(MBeanServer mBeanServer) |
Modifier and Type | Method and Description |
---|---|
Optional<String> |
getConnectorPort()
Returns the connector port.
|
Optional<org.apache.commons.lang3.tuple.Pair<String,String>> |
getDatasourceCredentials()
Searches the password from the datasource that could be defined in one of the possible XML files.
|
Optional<String> |
getDatasourceUrl(File xmlFile)
Reads the datasource URL attribute from the given XML config file.
|
String |
getJavaRuntimeDirectory()
Returns the Java Runtime installation directory.
|
Optional<Integer> |
getMaxHttpThreads()
Returns the maximum number of threads that can be used by Tomcat's HTTP connector.
|
List<File> |
getPotentialDatasourceLocations()
Returns the potential locations of datasource files.
|
Optional<Integer> |
getProxyPort()
Returns the proxy port defined in
server.xml . |
boolean |
isStandardPort(int port)
Indicates whether the given port is a standard HTTP port.
|
public DefaultTomcatConfigHelper(MBeanServer mBeanServer)
public Optional<Integer> getProxyPort()
TomcatConfigHelper
server.xml
.getProxyPort
in interface TomcatConfigHelper
public Optional<String> getConnectorPort()
TomcatConfigHelper
getConnectorPort
in interface TomcatConfigHelper
public List<File> getPotentialDatasourceLocations()
TomcatConfigHelper
getPotentialDatasourceLocations
in interface TomcatConfigHelper
public Optional<org.apache.commons.lang3.tuple.Pair<String,String>> getDatasourceCredentials()
TomcatConfigHelper
getDatasourceCredentials
in interface TomcatConfigHelper
public Optional<String> getDatasourceUrl(File xmlFile)
TomcatConfigHelper
getDatasourceUrl
in interface TomcatConfigHelper
xmlFile
- the tomcat context.xml file containing the JNDI datasource configurationpublic String getJavaRuntimeDirectory()
TomcatConfigHelper
getJavaRuntimeDirectory
in interface TomcatConfigHelper
public boolean isStandardPort(int port)
TomcatConfigHelper
isStandardPort
in interface TomcatConfigHelper
public Optional<Integer> getMaxHttpThreads()
TomcatConfigHelper
getMaxHttpThreads
in interface TomcatConfigHelper
Copyright © 2003–2021 Atlassian. All rights reserved.