Java 类org.springframework.boot.devtools.restart.server.HttpRestartServer 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:RemoteDevToolsAutoConfiguration.java   
@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);
}
项目:spring-boot-concourse    文件:RemoteDevToolsAutoConfiguration.java   
@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);
}
项目:contestparser    文件:RemoteDevToolsAutoConfiguration.java   
@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);
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:RemoteDevToolsAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean
public HttpRestartServer remoteRestartHttpRestartServer(
        SourceFolderUrlFilter sourceFolderUrlFilter) {
    return new HttpRestartServer(sourceFolderUrlFilter);
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:RemoteDevToolsAutoConfigurationTests.java   
@Bean
public HttpRestartServer remoteRestartHttpRestartServer() {
    SourceFolderUrlFilter sourceFolderUrlFilter = mock(
            SourceFolderUrlFilter.class);
    return new MockHttpRestartServer(sourceFolderUrlFilter);
}
项目:spring-boot-concourse    文件:RemoteDevToolsAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean
public HttpRestartServer remoteRestartHttpRestartServer(
        SourceFolderUrlFilter sourceFolderUrlFilter) {
    return new HttpRestartServer(sourceFolderUrlFilter);
}
项目:spring-boot-concourse    文件:RemoteDevToolsAutoConfigurationTests.java   
@Bean
public HttpRestartServer remoteRestartHttpRestartServer() {
    SourceFolderUrlFilter sourceFolderUrlFilter = mock(
            SourceFolderUrlFilter.class);
    return new MockHttpRestartServer(sourceFolderUrlFilter);
}
项目:contestparser    文件:RemoteDevToolsAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean
public HttpRestartServer remoteRestartHttpRestartServer(
        SourceFolderUrlFilter sourceFolderUrlFilter) {
    return new HttpRestartServer(sourceFolderUrlFilter);
}
项目:contestparser    文件:RemoteDevToolsAutoConfigurationTests.java   
@Bean
public HttpRestartServer remoteRestartHttpRestartServer() {
    SourceFolderUrlFilter sourceFolderUrlFilter = mock(
            SourceFolderUrlFilter.class);
    return new MockHttpRestartServer(sourceFolderUrlFilter);
}