Example usage for io.vertx.core.http HttpClientOptions isKeepAlive

List of usage examples for io.vertx.core.http HttpClientOptions isKeepAlive

Introduction

In this page you can find the example usage for io.vertx.core.http HttpClientOptions isKeepAlive.

Prototype

public boolean isKeepAlive() 

Source Link

Document

Is keep alive enabled on the client?

Usage

From source file:io.gravitee.gateway.http.connector.VertxHttpClient.java

License:Apache License

private void printHttpClientConfiguration(HttpClientOptions httpClientOptions) {
    LOGGER.info("Create HTTP Client with configuration: ");
    LOGGER.info("\tHTTP {" + "ConnectTimeout='" + httpClientOptions.getConnectTimeout() + '\'' + ", KeepAlive='"
            + httpClientOptions.isKeepAlive() + '\'' + ", IdleTimeout='" + httpClientOptions.getIdleTimeout()
            + '\'' + ", MaxChunkSize='" + httpClientOptions.getMaxChunkSize() + '\'' + ", MaxPoolSize='"
            + httpClientOptions.getMaxPoolSize() + '\'' + ", MaxWaitQueueSize='"
            + httpClientOptions.getMaxWaitQueueSize() + '\'' + ", Pipelining='"
            + httpClientOptions.isPipelining() + '\'' + ", PipeliningLimit='"
            + httpClientOptions.getPipeliningLimit() + '\'' + ", TryUseCompression='"
            + httpClientOptions.isTryUseCompression() + '\'' + '}');

    if (httpClientOptions.isSsl()) {
        LOGGER.info("\tSSL {" + "TrustAll='" + httpClientOptions.isTrustAll() + '\'' + ", VerifyHost='"
                + httpClientOptions.isVerifyHost() + '\'' + '}');
    }//from  w w w.j a v  a 2s .com

    if (httpClientOptions.getProxyOptions() != null) {
        LOGGER.info("\tProxy {" + "Type='" + httpClientOptions.getProxyOptions().getType() + ", Host='"
                + httpClientOptions.getProxyOptions().getHost() + '\'' + ", Port='"
                + httpClientOptions.getProxyOptions().getPort() + '\'' + ", Username='"
                + httpClientOptions.getProxyOptions().getUsername() + '\'' + '}');
    }
}