MCPcopy Index your code
hub / github.com/apache/tomcat / addWrapper

Method addWrapper

java/org/apache/catalina/mapper/Mapper.java:425–433  ·  view source on GitHub ↗

Add a wrapper to the given context. @param hostName The host name @param contextPath The context path @param version The version @param path The wrapper path @param wrapper The wrapper @param jspWildCard Whether it's a JSP wildcard @param resourceOnly Whether it's resource only

(String hostName, String contextPath, String version, String path, Wrapper wrapper,
            boolean jspWildCard, boolean resourceOnly)

Source from the content-addressed store, hash-verified

423 * @param resourceOnly Whether it's resource only
424 */
425 public void addWrapper(String hostName, String contextPath, String version, String path, Wrapper wrapper,
426 boolean jspWildCard, boolean resourceOnly) {
427 hostName = renameWildcardHost(hostName);
428 ContextVersion contextVersion = findContextVersion(hostName, contextPath, version, false);
429 if (contextVersion == null) {
430 return;
431 }
432 addWrapper(contextVersion, path, wrapper, jspWildCard, resourceOnly);
433 }
434
435 /**
436 * Add wrappers to the given context.

Callers 2

addWrappersMethod · 0.95
containerEventMethod · 0.45

Calls 9

renameWildcardHostMethod · 0.95
findContextVersionMethod · 0.95
insertMapMethod · 0.95
slashCountMethod · 0.95
endsWithMethod · 0.80
lengthMethod · 0.80
equalsMethod · 0.65
startsWithMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected