Ejemplo n.º 1
0
 private void cleanUpContexts() {
   for (Map.Entry<String, JettyHttpContext> stringJettyHttpContextEntry : _contexts.entrySet()) {
     JettyHttpContext context = stringJettyHttpContextEntry.getValue();
     _server.removeBean(context.getJettyContextHandler());
   }
   _contexts.clear();
 }
Ejemplo n.º 2
0
 /**
  * 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);
 }
Ejemplo n.º 3
0
 /** @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);
 }
Ejemplo n.º 4
0
 /** @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);
 }
Ejemplo n.º 5
0
 @Override
 public void removeContext(String path) throws IllegalArgumentException {
   JettyHttpContext context = _contexts.remove(path);
   if (context == null) return;
   _server.removeBean(context.getJettyContextHandler());
 }