@Bean public HandlerMapper remoteDevToolsHealthCheckHandlerMapper() { Handler handler = new HttpStatusHandler(); return new UrlHandlerMapper((this.serverProperties.getContextPath() == null ? "" : this.serverProperties.getContextPath()) + this.properties.getRemote().getContextPath(), handler); }
@Bean @ConditionalOnMissingBean(name = "remoteRestartHandlerMapper") public UrlHandlerMapper remoteRestartHandlerMapper(HttpRestartServer server) { String url = (this.serverProperties.getContextPath() == null ? "" : this.serverProperties.getContextPath()) + this.properties.getRemote().getContextPath() + "/restart"; logger.warn("Listening for remote restart updates on " + url); Handler handler = new HttpRestartServerHandler(server); return new UrlHandlerMapper(url, handler); }
@Bean @ConditionalOnMissingBean(name = "remoteDebugHandlerMapper") public UrlHandlerMapper remoteDebugHandlerMapper( @Qualifier("remoteDebugHttpTunnelServer") HttpTunnelServer server) { String url = (this.serverProperties.getContextPath() == null ? "" : this.serverProperties.getContextPath()) + this.properties.getRemote().getContextPath() + "/debug"; logger.warn("Listening for remote debug traffic on " + url); Handler handler = new HttpTunnelServerHandler(server); return new UrlHandlerMapper(url, handler); }
@Bean public DispatcherFilter filter() { PortProvider port = new StaticPortProvider(this.httpServerPort); TargetServerConnection connection = new SocketTargetServerConnection(port); HttpTunnelServer server = new HttpTunnelServer(connection); HandlerMapper mapper = new UrlHandlerMapper("/httptunnel", new HttpTunnelServerHandler(server)); Collection<HandlerMapper> mappers = Collections.singleton(mapper); Dispatcher dispatcher = new Dispatcher(AccessManager.PERMIT_ALL, mappers); return new DispatcherFilter(dispatcher); }
@Bean @ConditionalOnMissingBean(name = "remoteRestartHanderMapper") public UrlHandlerMapper remoteRestartHanderMapper(HttpRestartServer server) { String url = this.properties.getRemote().getContextPath() + "/restart"; logger.warn("Listening for remote restart updates on " + url); Handler handler = new HttpRestartServerHandler(server); return new UrlHandlerMapper(url, handler); }
@Bean @ConditionalOnMissingBean(name = "remoteDebugHanderMapper") public UrlHandlerMapper remoteDebugHanderMapper( @Qualifier("remoteDebugHttpTunnelServer") HttpTunnelServer server) { String url = this.properties.getRemote().getContextPath() + "/debug"; logger.warn("Listening for remote debug traffic on " + url); Handler handler = new HttpTunnelServerHandler(server); return new UrlHandlerMapper(url, handler); }
@Bean public HandlerMapper remoteDevToolsHealthCheckHandlerMapper() { Handler handler = new HttpStatusHandler(); return new UrlHandlerMapper(this.properties.getRemote().getContextPath(), handler); }