MCPcopy Create free account
hub / github.com/apache/tomcat / getWebappConfigFile

Method getWebappConfigFile

java/org/apache/catalina/startup/Tomcat.java:1211–1218  ·  view source on GitHub ↗

Finds the web application configuration file (web.xml) for the given path. @param path the document base path @param contextName the context name @return the configuration file URL, or null if not found

(String path, String contextName)

Source from the content-addressed store, hash-verified

1209 * @return the configuration file URL, or null if not found
1210 */
1211 protected URL getWebappConfigFile(String path, String contextName) {
1212 File docBase = new File(path);
1213 if (docBase.isDirectory()) {
1214 return getWebappConfigFileFromDirectory(docBase, contextName);
1215 } else {
1216 return getWebappConfigFileFromWar(docBase, contextName);
1217 }
1218 }
1219
1220 private URL getWebappConfigFileFromDirectory(File docBase, String contextName) {
1221 URL result = null;

Calls 3

isDirectoryMethod · 0.65