Java 类org.springframework.boot.devtools.remote.server.AccessManager 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:RemoteDevToolsAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean
public AccessManager remoteDevToolsAccessManager() {
    RemoteDevToolsProperties remoteProperties = this.properties.getRemote();
    return new HttpHeaderAccessManager(remoteProperties.getSecretHeaderName(),
            remoteProperties.getSecret());
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:RemoteDevToolsAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean
public DispatcherFilter remoteDevToolsDispatcherFilter(AccessManager accessManager,
        Collection<HandlerMapper> mappers) {
    Dispatcher dispatcher = new Dispatcher(accessManager, mappers);
    return new DispatcherFilter(dispatcher);
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:HttpTunnelIntegrationTests.java   
@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);
}
项目:spring-boot-concourse    文件:RemoteDevToolsAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean
public AccessManager remoteDevToolsAccessManager() {
    RemoteDevToolsProperties remoteProperties = this.properties.getRemote();
    return new HttpHeaderAccessManager(remoteProperties.getSecretHeaderName(),
            remoteProperties.getSecret());
}
项目:spring-boot-concourse    文件:RemoteDevToolsAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean
public DispatcherFilter remoteDevToolsDispatcherFilter(AccessManager accessManager,
        Collection<HandlerMapper> mappers) {
    Dispatcher dispatcher = new Dispatcher(accessManager, mappers);
    return new DispatcherFilter(dispatcher);
}
项目:spring-boot-concourse    文件:HttpTunnelIntegrationTests.java   
@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);
}
项目:contestparser    文件:RemoteDevToolsAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean
public AccessManager remoteDevToolsAccessManager() {
    RemoteDevToolsProperties remoteProperties = this.properties.getRemote();
    return new HttpHeaderAccessManager(remoteProperties.getSecretHeaderName(),
            remoteProperties.getSecret());
}
项目:contestparser    文件:RemoteDevToolsAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean
public DispatcherFilter remoteDevToolsDispatcherFilter(AccessManager accessManager,
        Collection<HandlerMapper> mappers) {
    Dispatcher dispatcher = new Dispatcher(accessManager, mappers);
    return new DispatcherFilter(dispatcher);
}
项目:contestparser    文件:HttpTunnelIntegrationTest.java   
@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);
}