void registerLocation(String path) { String realPath = path.startsWith("/") ? path : "/" + path; locations.put(realPath, null); undertowService.getValue().fireEvent(listener -> listener.onDeploymentStart(realPath, Host.this)); }
void unregisterLocation(String path) { String realPath = path.startsWith("/") ? path : "/" + path; locations.remove(realPath); undertowService.getValue().fireEvent(listener -> listener.onDeploymentStop(realPath, Host.this)); }
@Override public void invoke(UndertowEventListener listener) { listener.onServerStart(server); } });
@Override public void invoke(UndertowEventListener listener) { listener.onShutdown(); } });
@Override public void invoke(UndertowEventListener listener) { listener.onServerStop(server); } });
@Override public void invoke(UndertowEventListener listener) { listener.onShutdown(); } });
@Override public void invoke(UndertowEventListener listener) { listener.onServerStop(server); } });
void unregisterLocation(LocationService location) { locations.remove(location.getLocationPath()); unregisterHandler(location.getLocationPath()); undertowService.getValue().fireEvent(listener -> listener.onDeploymentStop(location.getLocationPath(), Host.this)); }
void registerLocation(LocationService location) { locations.put(location.getLocationPath(), location); registerHandler(location.getLocationPath(), location.getLocationHandler()); undertowService.getValue().fireEvent(listener -> listener.onDeploymentStart(location.getLocationPath(), Host.this)); }
@Override public void invoke(UndertowEventListener listener) { listener.onShutdown(); } });
@Override public void invoke(UndertowEventListener listener) { listener.onServerStop(server); } });
@Override public void invoke(UndertowEventListener listener) { listener.onServerStart(server); } });
public void unregisterDeployment(final Deployment deployment) { DeploymentInfo deploymentInfo = deployment.getDeploymentInfo(); String path = getDeployedContextPath(deploymentInfo); undertowService.getValue().fireEvent(listener -> listener.onDeploymentStop(deployment, Host.this)); unregisterHandler(path); deployments.remove(deployment); UndertowLogger.ROOT_LOGGER.unregisterWebapp(path, getServer().getName()); }
public void registerDeployment(final Deployment deployment, HttpHandler handler) { DeploymentInfo deploymentInfo = deployment.getDeploymentInfo(); String path = getDeployedContextPath(deploymentInfo); registerHandler(path, handler); deployments.add(deployment); UndertowLogger.ROOT_LOGGER.registerWebapp(path, getServer().getName()); undertowService.getValue().fireEvent(listener -> listener.onDeploymentStart(deployment, Host.this)); }
@Override public void invoke(UndertowEventListener listener) { listener.onServerStart(server); } });
void unregisterLocation(String path) { String realPath = path.startsWith("/") ? path : "/" + path; locations.remove(realPath); undertowService.getValue().fireEvent(listener -> listener.onDeploymentStop(realPath, Host.this)); }
void registerLocation(String path) { String realPath = path.startsWith("/") ? path : "/" + path; locations.put(realPath, null); undertowService.getValue().fireEvent(listener -> listener.onDeploymentStart(realPath, Host.this)); }
void unregisterLocation(String path) { String realPath = path.startsWith("/") ? path : "/" + path; locations.remove(realPath); undertowService.getValue().fireEvent(listener -> listener.onDeploymentStop(realPath, Host.this)); }
void registerLocation(String path) { String realPath = path.startsWith("/") ? path : "/" + path; locations.put(realPath, null); undertowService.getValue().fireEvent(listener -> listener.onDeploymentStart(realPath, Host.this)); }
void unregisterLocation(LocationService location) { locations.remove(location.getLocationPath()); unregisterHandler(location.getLocationPath()); undertowService.getValue().fireEvent(listener -> listener.onDeploymentStop(location.getLocationPath(), Host.this)); }