@Internal
@ParametersAreNonnullByDefault
@ReturnValuesAreNonnullByDefault
public interface TomcatConfigHelper
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()
Returns the maximum number of threads that can be used by Tomcat's default (first) 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.
|
Optional<String> getConnectorPort()
Optional<org.apache.commons.lang3.tuple.Pair<String,String>> getDatasourceCredentials()
Optional<String> getDatasourceUrl(File xmlFile)
xmlFile
- the tomcat context.xml file containing the JNDI datasource configurationString getJavaRuntimeDirectory()
@Deprecated Optional<Integer> getMaxHttpThreads()
getAllMaxHttpThreads()
Returns the maximum number of threads that can be used by Tomcat's default (first) HTTP connector.List<Optional<Integer>> getAllMaxHttpThreads()
List<File> getPotentialDatasourceLocations()
Optional<Integer> getProxyPort()
server.xml
.boolean isStandardPort(int port)
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences