@Override public void removeContext(final String s) throws IllegalArgumentException { delegate.removeContext(s); }
@Override public void removeContext(final HttpContext httpContext) { delegate.removeContext(httpContext); }
@Override public void removeContext(String s) throws IllegalArgumentException { httpServer.removeContext(s); }
@Override public void removeContext(HttpContext httpContext) { httpServer.removeContext(httpContext); }
@Override public void removeContext(final String s) throws IllegalArgumentException { delegate.removeContext(s); }
@Override public void removeContext(final HttpContext httpContext) { delegate.removeContext(httpContext); }
void replaceRootHandler(ConfigHttpHandler configHttpHandler) { server.removeContext("/"); server.createContext("/", configHttpHandler); } }
/** * Stop the HTTP server */ public void stop() { httpServer.removeContext(httpContext); serviceManager.stop(); if (cleaner != null) { cleaner.stopServer(); } }
httpServer.getAddress() ); httpServer.removeContext( path );
/** * {@inheritDoc} */ @Override public synchronized void close() throws CloseException { if ( _connectionStatus != ConnectionStatus.OPENED ) { throw new CloseException( "Connection is in status <" + _connectionStatus + ">. Open the connection before closing!" ); } try { if ( _httpServer != null ) { _httpServer.stop( LatencySleepTime.MIN.getMilliseconds() / 1000 ); _httpServer.removeContext( CONTEXT_PATH ); _httpServer = null; } } finally { _connectionStatus = ConnectionStatus.CLOSED; } }
_contextBuilder.cleanup(); try { _httpServer.removeContext(_contextBuilder.getPath()); } catch (IllegalArgumentException iae) { if (LOGGER.isDebugEnabled()) {
context.getPath(), httpServer.getAddress() ); httpServer.removeContext( context );
/*package*/ void removeContext(HttpContext context) { InetSocketAddress inetAddress = context.getServer().getAddress(); synchronized(servers) { ServerState state = servers.get(inetAddress); int instances = state.noOfContexts(); if (instances < 2) { ((ExecutorService)state.getServer().getExecutor()).shutdown(); state.getServer().stop(0); servers.remove(inetAddress); } else { state.getServer().removeContext(context); state.oneLessContext(context.getPath()); } } }
/*package*/ void removeContext(HttpContext context) { InetSocketAddress inetAddress = context.getServer().getAddress(); synchronized(servers) { ServerState state = servers.get(inetAddress); int instances = state.noOfContexts(); if (instances < 2) { ((ExecutorService)state.getServer().getExecutor()).shutdown(); state.getServer().stop(0); servers.remove(inetAddress); } else { state.getServer().removeContext(context); state.oneLessContext(context.getPath()); } } }
/*package*/ void removeContext(HttpContext context) { InetSocketAddress inetAddress = context.getServer().getAddress(); synchronized(servers) { ServerState state = servers.get(inetAddress); int instances = state.noOfContexts(); if (instances < 2) { ((ExecutorService)state.getServer().getExecutor()).shutdown(); state.getServer().stop(0); servers.remove(inetAddress); } else { state.getServer().removeContext(context); state.oneLessContext(context.getPath()); } } }
public void stop() { if (httpContext != null) { if (address == null) { // Application created its own HttpContext // httpContext.setHandler(null); httpContext.getServer().removeContext(httpContext); } else { // Remove HttpContext created by JAXWS runtime ServerMgr.getInstance().removeContext(httpContext); } } // Invoke WebService Life cycle method adapter.getEndpoint().dispose(); }
public void stop() { if (httpContext != null) { if (address == null) { // Application created its own HttpContext // httpContext.setHandler(null); httpContext.getServer().removeContext(httpContext); } else { // Remove HttpContext created by JAXWS runtime ServerMgr.getInstance().removeContext(httpContext); } } // Invoke WebService Life cycle method adapter.getEndpoint().dispose(); }
public void stop() { if (httpContext != null) { if (address == null) { // Application created its own HttpContext // httpContext.setHandler(null); httpContext.getServer().removeContext(httpContext); } else { // Remove HttpContext created by JAXWS runtime ServerMgr.getInstance().removeContext(httpContext); } } // Invoke WebService Life cycle method adapter.getEndpoint().dispose(); }
private void undeploy(String name) throws DeploymentException { try { DeploymentProgress stopProgress = deploymentManager.stop(name); stopProgress.run(); DeploymentProgress undeployProgress = deploymentManager.remove(name); undeployProgress.run(); if (undeployProgress.getDeploymentStatus().isFailed()) { failedUndeployments.add(name); } httpFileServer.removeContext("/" + name); } catch (Exception e) { throw new DeploymentException("Could not undeploy " + name, e); } }
_contextBuilder.cleanup(); try { _httpServer.removeContext(_contextBuilder.getPath()); } catch (IllegalArgumentException iae) { if (LOGGER.isDebugEnabled()) {