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

Method createSubcontext

java/org/apache/naming/NamingContext.java:344–356  ·  view source on GitHub ↗
(Name name)

Source from the content-addressed store, hash-verified

342
343
344 @Override
345 public Context createSubcontext(Name name) throws NamingException {
346 if (!checkWritable()) {
347 return null;
348 }
349
350 NamingContext newContext = new NamingContext(env, this.name);
351 bind(name, newContext);
352
353 newContext.setExceptionOnFailedWrite(getExceptionOnFailedWrite());
354
355 return newContext;
356 }
357
358
359 @Override

Callers 2

createNamingContextMethod · 0.45
createSubcontextsMethod · 0.45

Calls 4

checkWritableMethod · 0.95
bindMethod · 0.95

Tested by

no test coverage detected