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

Method initWebappDefaults

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

Provide default configuration for a context. This is broadly the programmatic equivalent of the default web.xml and provides the following features: Default servlet mapped to "/" JSP servlet mapped to " .jsp" and "" .jspx" Session timeout of 30 minutes MIME mappin

(String contextPath)

Source from the content-addressed store, hash-verified

1025 * @param contextPath The path of the context to set the defaults for
1026 */
1027 public void initWebappDefaults(String contextPath) {
1028 Container ctx = getHost().findChild(contextPath);
1029 initWebappDefaults((Context) ctx);
1030 }
1031
1032
1033 /**

Callers 7

doTestTagReleaseMethod · 0.95
doClassUnloadingPrepMethod · 0.95
testBug57700Method · 0.95
doTestELMiscMethod · 0.95
lifecycleEventMethod · 0.80

Calls 11

getHostMethod · 0.95
addServletMethod · 0.95
setLoadOnStartupMethod · 0.95
setOverridableMethod · 0.95
addInitParameterMethod · 0.95
findChildMethod · 0.65
setSessionTimeoutMethod · 0.65
addWelcomeFileMethod · 0.65

Tested by 6

doTestTagReleaseMethod · 0.76
doClassUnloadingPrepMethod · 0.76
testBug57700Method · 0.76
doTestELMiscMethod · 0.76