Set the parent Container of this Wrapper, but only if it is a Context. @param container Proposed parent Container
(Container container)
| 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 |
nothing calls this directly
no test coverage detected