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

Method addContext

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

Add a context to the list. @param mappedContext The context to add @param slashCount The number of slashes in the path @return the new ContextList or null if failed

(MappedContext mappedContext, int slashCount)

Source from the content-addressed store, hash-verified

1708 * @return the new ContextList or null if failed
1709 */
1710 public ContextList addContext(MappedContext mappedContext, int slashCount) {
1711 MappedContext[] newContexts = new MappedContext[contexts.length + 1];
1712 if (insertMap(contexts, newContexts, mappedContext)) {
1713 return new ContextList(newContexts, Math.max(nesting, slashCount));
1714 }
1715 return null;
1716 }
1717
1718 /**
1719 * Remove a context from the list.

Callers 1

addContextVersionMethod · 0.95

Calls 2

insertMapMethod · 0.80
maxMethod · 0.45

Tested by

no test coverage detected