Java 类org.springframework.boot.devtools.tunnel.client.HttpTunnelConnection 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:RemoteClientConfiguration.java   
@Bean
public TunnelClient remoteDebugTunnelClient(
        ClientHttpRequestFactory requestFactory) {
    RemoteDevToolsProperties remoteProperties = this.properties.getRemote();
    String url = this.remoteUrl + remoteProperties.getContextPath() + "/debug";
    TunnelConnection connection = new HttpTunnelConnection(url, requestFactory);
    int localPort = remoteProperties.getDebug().getLocalPort();
    TunnelClient client = new TunnelClient(localPort, connection);
    client.addListener(new LoggingTunnelClientListener());
    return client;
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:HttpTunnelIntegrationTests.java   
@Bean
public TunnelClient tunnelClient() {
    String url = "http://localhost:" + this.httpServerPort + "/httptunnel";
    TunnelConnection connection = new HttpTunnelConnection(url,
            new SimpleClientHttpRequestFactory());
    return new TunnelClient(this.clientPort, connection);
}
项目:spring-boot-concourse    文件:RemoteClientConfiguration.java   
@Bean
public TunnelClient remoteDebugTunnelClient(
        ClientHttpRequestFactory requestFactory) {
    RemoteDevToolsProperties remoteProperties = this.properties.getRemote();
    String url = this.remoteUrl + remoteProperties.getContextPath() + "/debug";
    TunnelConnection connection = new HttpTunnelConnection(url, requestFactory);
    int localPort = remoteProperties.getDebug().getLocalPort();
    TunnelClient client = new TunnelClient(localPort, connection);
    client.addListener(new LoggingTunnelClientListener());
    return client;
}
项目:spring-boot-concourse    文件:HttpTunnelIntegrationTests.java   
@Bean
public TunnelClient tunnelClient() {
    String url = "http://localhost:" + this.httpServerPort + "/httptunnel";
    TunnelConnection connection = new HttpTunnelConnection(url,
            new SimpleClientHttpRequestFactory());
    return new TunnelClient(this.clientPort, connection);
}
项目:contestparser    文件:RemoteClientConfiguration.java   
@Bean
public TunnelClient remoteDebugTunnelClient(
        ClientHttpRequestFactory requestFactory) {
    RemoteDevToolsProperties remoteProperties = this.properties.getRemote();
    String url = this.remoteUrl + remoteProperties.getContextPath() + "/debug";
    TunnelConnection connection = new HttpTunnelConnection(url, requestFactory);
    int localPort = remoteProperties.getDebug().getLocalPort();
    TunnelClient client = new TunnelClient(localPort, connection);
    client.addListener(new LoggingTunnelClientListener());
    return client;
}
项目:contestparser    文件:HttpTunnelIntegrationTest.java   
@Bean
public TunnelClient tunnelClient() {
    String url = "http://localhost:" + this.httpServerPort + "/httptunnel";
    TunnelConnection connection = new HttpTunnelConnection(url,
            new SimpleClientHttpRequestFactory());
    return new TunnelClient(this.clientPort, connection);
}