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

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

Introduction

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

Prototype

public boolean isVerifyHost() 

Source Link

Document

Is hostname verification (for SSL/TLS) enabled?

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  ww  w  .j  a  v  a2s. co m

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