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

Method updateContextList

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

Replace MappedHost#contextList field in realHost and all its aliases with a new value.

(MappedHost realHost, ContextList newContextList)

Source from the content-addressed store, hash-verified

249 * Replace {@link MappedHost#contextList} field in <code>realHost</code> and all its aliases with a new value.
250 */
251 private void updateContextList(MappedHost realHost, ContextList newContextList) {
252
253 realHost.contextList = newContextList;
254 for (MappedHost alias : realHost.getAliases()) {
255 alias.contextList = newContextList;
256 }
257 }
258
259 /**
260 * Add a new Context to an existing Host.

Callers 2

addContextVersionMethod · 0.95
removeContextVersionMethod · 0.95

Calls 1

getAliasesMethod · 0.45

Tested by

no test coverage detected