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

Method removeContext

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

Remove a context from the list. @param path The path of the context to remove @return the new ContextList or null if failed

(String path)

Source from the content-addressed store, hash-verified

1722 * @return the new ContextList or null if failed
1723 */
1724 public ContextList removeContext(String path) {
1725 MappedContext[] newContexts = new MappedContext[contexts.length - 1];
1726 if (removeMap(contexts, newContexts, path)) {
1727 int newNesting = 0;
1728 for (MappedContext context : newContexts) {
1729 newNesting = Math.max(newNesting, slashCount(context.name));
1730 }
1731 return new ContextList(newContexts, newNesting);
1732 }
1733 return null;
1734 }
1735 }
1736
1737

Callers 1

removeContextVersionMethod · 0.95

Calls 3

removeMapMethod · 0.80
slashCountMethod · 0.80
maxMethod · 0.45

Tested by

no test coverage detected