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

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

Introduction

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

Prototype

public boolean isTryUseCompression() 

Source Link

Document

Is compression 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() + '\'' + '}');
    }/*  w w w .  j a  va  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() + '\'' + '}');
    }
}