@Internal public class DefaultTomcatConfigHelper extends Object implements TomcatConfigHelper
TomcatConfigHelper
.Constructor and Description |
---|
DefaultTomcatConfigHelper(MBeanServer mBeanServer) |
Modifier and Type | Method and Description |
---|---|
List<Optional<Integer>> |
getAllMaxHttpThreads() |
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()
Deprecated.
since 7.12.3 Use
getAllMaxHttpThreads() |
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 List<Optional<Integer>> getAllMaxHttpThreads()
getAllMaxHttpThreads
in interface TomcatConfigHelper
@Deprecated public Optional<Integer> getMaxHttpThreads()
getAllMaxHttpThreads()
getMaxHttpThreads
in interface TomcatConfigHelper
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences