private void cleanUpContexts() { for (Map.Entry<String, JettyHttpContext> stringJettyHttpContextEntry : _contexts.entrySet()) { JettyHttpContext context = stringJettyHttpContextEntry.getValue(); _server.removeBean(context.getJettyContextHandler()); } _contexts.clear(); }
/** * Remove a LifeCycle object to be started/stopped along with the Server * * @deprecated Use {@link #removeBean(Object)} */ @Deprecated public void removeLifeCycle(LifeCycle c) { removeBean(c); }
/** @param sessionIdManager The sessionIdManager to set. */ public void setSessionIdManager(SessionIdManager sessionIdManager) { if (_sessionIdManager != null) removeBean(_sessionIdManager); _container.update(this, _sessionIdManager, sessionIdManager, "sessionIdManager", false); _sessionIdManager = sessionIdManager; if (_sessionIdManager != null) addBean(_sessionIdManager); }
/** @param threadPool The threadPool to set. */ public void setThreadPool(ThreadPool threadPool) { if (_threadPool != null) removeBean(_threadPool); _container.update(this, _threadPool, threadPool, "threadpool", false); _threadPool = threadPool; if (_threadPool != null) addBean(_threadPool); }
@Override public void removeContext(String path) throws IllegalArgumentException { JettyHttpContext context = _contexts.remove(path); if (context == null) return; _server.removeBean(context.getJettyContextHandler()); }