@Internal public class TomcatConfigHelper extends Object
Constructor and Description |
---|
TomcatConfigHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
getConnectorPort() |
static Optional<org.apache.commons.lang3.tuple.Pair<String,String>> |
getDatasourceCredentials()
This method searches the password from the datasource that could be defined in one of the possible XML files
|
static Optional<String> |
getDatasourceUrl(File xmlFile)
Get the datasource url attribute from the given config xml file.
|
static String |
getJavaRuntimeDirectory()
We read the Java Runtime installation directory from java.home system variable first,
and then default to JRE_HOME if JAVA_HOME is empty because Tomcat is doing so.
|
static List<File> |
getPotentialDatasourceLocations() |
static Optional<String> |
getProxyPort() |
static boolean |
isStandardPort(int port) |
public static String getConnectorPort()
public static Optional<org.apache.commons.lang3.tuple.Pair<String,String>> getDatasourceCredentials()
public static Optional<String> getDatasourceUrl(File xmlFile)
xmlFile
- the tomcat context.xml file containing the JNDI datasource configurationpublic static String getJavaRuntimeDirectory()
Use this method to ensure that we always use same JRE with Confluence for Synchrony.
public static boolean isStandardPort(int port)
Copyright © 2003–2017 Atlassian. All rights reserved.