Merged branch 'jetty-9.4.x' into 'jetty-10.0.x'.
This commit is contained in:
commit
90b3a576b1
|
@ -1618,10 +1618,13 @@ public class ContextHandler extends ScopedHandler implements Attributes, Gracefu
|
|||
|
||||
if (getServer() != null && (getServer().isStarting() || getServer().isStarted()))
|
||||
{
|
||||
ContextHandlerCollection[] contextCollections =
|
||||
(ContextHandlerCollection[])getServer().getChildHandlersByClass(ContextHandlerCollection.class);
|
||||
for (int h = 0; contextCollections != null && h < contextCollections.length; h++)
|
||||
contextCollections[h].mapContexts();
|
||||
Class<ContextHandlerCollection> handlerClass = ContextHandlerCollection.class;
|
||||
Handler[] contextCollections = getServer().getChildHandlersByClass(handlerClass);
|
||||
if (contextCollections != null)
|
||||
{
|
||||
for (Handler contextCollection : contextCollections)
|
||||
handlerClass.cast(contextCollection).mapContexts();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue