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

Method addWebapp

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

This is equivalent to adding a web application to a Host's appBase (usually Tomcat's webapps directory). By default, the equivalent of the default web.xml will be applied to the web application (see #initWebappDefaults(String)). This may be prevented by calling {@link #setAddDefaultWebXmlToW

(String contextPath, String docBase)

Source from the content-addressed store, hash-verified

230 * @return the deployed context
231 */
232 public Context addWebapp(String contextPath, String docBase) {
233 return addWebapp(getHost(), contextPath, docBase);
234 }
235
236
237 /**

Callers 15

setUpMethod · 0.95
testServlet22NoELMethod · 0.95
testServlet23NoELMethod · 0.95
testServlet24NoELMethod · 0.95
testServlet25NoELMethod · 0.95
testServlet30NoELMethod · 0.95
testServlet31NoELMethod · 0.95
testServlet40NoELMethod · 0.95
testServlet50NoELMethod · 0.95
testServlet60NoELMethod · 0.95
testServlet61NoELMethod · 0.95

Calls 15

getHostMethod · 0.95
getNameMethod · 0.95
getAppBaseFileMethod · 0.95
getBaseNameMethod · 0.95
flowMethod · 0.95
silenceMethod · 0.95
createContextMethod · 0.95
setPathMethod · 0.95
setDocBaseMethod · 0.95
setConfigFileMethod · 0.95
getWebappConfigFileMethod · 0.95

Tested by 15

setUpMethod · 0.76
testServlet22NoELMethod · 0.76
testServlet23NoELMethod · 0.76
testServlet24NoELMethod · 0.76
testServlet25NoELMethod · 0.76
testServlet30NoELMethod · 0.76
testServlet31NoELMethod · 0.76
testServlet40NoELMethod · 0.76
testServlet50NoELMethod · 0.76
testServlet60NoELMethod · 0.76
testServlet61NoELMethod · 0.76