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

Method setParent

java/org/apache/catalina/core/StandardWrapper.java:333–345  ·  view source on GitHub ↗

Set the parent Container of this Wrapper, but only if it is a Context. @param container Proposed parent Container

(Container container)

Source from the content-addressed store, hash-verified

331 * @param container Proposed parent Container
332 */
333 @Override
334 public void setParent(Container container) {
335
336 if ((container != null) && !(container instanceof Context)) {
337 throw new IllegalArgumentException(sm.getString("standardWrapper.notContext"));
338 }
339 if (container instanceof StandardContext) {
340 swallowOutput = ((StandardContext) container).getSwallowOutput();
341 unloadDelay = ((StandardContext) container).getUnloadDelay();
342 }
343 super.setParent(container);
344
345 }
346
347
348 @Override

Callers

nothing calls this directly

Calls 4

getUnloadDelayMethod · 0.80
getStringMethod · 0.65
getSwallowOutputMethod · 0.65
setParentMethod · 0.65

Tested by

no test coverage detected