public final class PathUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Path |
getAppServerConfigurationBase()
Returns a file path representation of the Application Server's WSO2-specific configuration base.
|
static Path |
getCatalinaBase()
Returns a file path representation of the Apache Tomcat instance specified by the CATALINA_BASE
environment variable.
|
static Path |
getCatalinaConfigurationBase()
Returns a file path representation of the Apache Tomcat configuration base.
|
static Path |
getWebAppPath(org.apache.catalina.Context context)
Returns an absolute file path representation of the webapp context root specified.
|
public static Path getCatalinaBase()
Path instance representing the Apache Tomcat instance specified by the CATALINA_BASE
environment variablepublic static Path getCatalinaConfigurationBase()
Path instance representing the Apache Tomcat configuration basepublic static Path getAppServerConfigurationBase()
Path instance representing the WSO2 Application Server's WSO2-specific configuration basepublic static Path getWebAppPath(org.apache.catalina.Context context) throws ApplicationServerException
context - the webapp of which the context root is to be returnedApplicationServerException - if an IOException occurs when retrieving the context rootCopyright © 2016 WSO2. All rights reserved.