@Deprecated public synchronized PathHandler removePath(final String path) { return removePrefixPath(path); }
@Override public void stop(StopContext context) { pathHandlerInjectedValue.getValue().removePrefixPath("/txn"); }
@Override public void stop(StopContext stopContext) { pathHandlerInjectedValue.getValue().removePrefixPath(NAMING); }
@Override public void stop(StopContext context) { pathHandlerInjectedValue.getValue().removePrefixPath("/ejb"); }
public void unregisterHandler(String path) { pathHandler.removePrefixPath(path); // if there is registered location for given path, serve it from now on LocationService location = locations.get(path); if (location != null) { pathHandler.addPrefixPath(location.getLocationPath(), location.getLocationHandler()); } // else serve the default response code else if (path.equals("/")) { this.setupDefaultResponseCodeHandler(); } }
@Deprecated public synchronized PathHandler removePath(final String path) { return removePrefixPath(path); }
@Override public synchronized PathHandler removePrefixPath(final String path) { super.removePrefixPath(path); handlers.remove(path); handlerString = null; return this; }
@Deprecated public synchronized PathHandler removePath(final String path) { return removePrefixPath(path); }
public Http4K unPublishHandler(String urlPath, int port) { Pair<PathHandler, Undertow> server = serverMap.get(port); if (server!=null) { server.car().removePrefixPath(urlPath); } return this; } }
@Override public void stop(StopContext stopContext) { pathHandlerInjectedValue.getValue().removePrefixPath(NAMING); }
@Override public void stop(StopContext stopContext) { pathHandlerInjectedValue.getValue().removePrefixPath(NAMING); }
@Override public void stop(StopContext context) { pathHandlerInjectedValue.getValue().removePrefixPath("/txn"); }
@Override public void stop(StopContext context) { pathHandlerInjectedValue.getValue().removePrefixPath("/txn"); }
public synchronized boolean remove(String path, List<String> vhosts) { boolean result = false; if (vhosts == null) { result = null != activeHandlers.remove(path); pathHandler.removePrefixPath(path); } else { for(String host: vhosts) { if (null != activeHandlers.remove(host + path)) { result = true; PathHandler ph = (PathHandler) vhostHandler.getHosts().get(host); ph.removePrefixPath(path); } } } purge(); return result; }
public synchronized void removeContext(String contextName) { Assert.checkNotNullParam("contextName", contextName); String context = fixPath(contextName); // Reject reserved contexts or non-existent extensions if (extensionHandlers.reservedContexts.contains(context) || !extensionHandlers.extensionContexts.contains(context)) { throw new IllegalStateException(); } extensionHandlers.extensionContexts.remove(context); extensionHandlers.extensionPathHandler.removePrefixPath(context); }
@Override public void removeServant(URL url) { UndertowHTTPHandler handler = registedPaths.remove(url.getPath()); if (handler == null) { return; } --servantCount; if (url.getPath().isEmpty()) { return; } if (handler.isContextMatchExact()) { path.removeExactPath(url.getPath()); } else { path.removePrefixPath(url.getPath()); } }
@Override public void removeServant(URL url) { UndertowHTTPHandler handler = registedPaths.remove(url.getPath()); if (handler == null) { return; } --servantCount; if (url.getPath().isEmpty()) { return; } if (handler.isContextMatchExact()) { path.removeExactPath(url.getPath()); } else { path.removePrefixPath(url.getPath()); } }
public void unregisterHandler(String path) { pathHandler.removePrefixPath(path); // if there is registered location for given path, serve it from now on LocationService location = locations.get(path); if (location != null) { pathHandler.addPrefixPath(location.getLocationPath(), location.getLocationHandler()); } // else serve the default response code else if (path.equals("/")) { this.setupDefaultResponseCodeHandler(); } }
public void unregisterHandler(String path) { pathHandler.removePrefixPath(path); // if there is registered location for given path, serve it from now on LocationService location = locations.get(path); if (location != null) { pathHandler.addPrefixPath(location.getLocationPath(), location.getLocationHandler()); } // else serve the default response code else if (path.equals("/")) { this.setupDefaultResponseCodeHandler(); } }