Class VespaHttpClientBuilder


  • public class VespaHttpClientBuilder
    extends Object
    Http client builder for internal Vespa communications over http/https. Notes: - hostname verification is not enabled - CN/SAN verification is assumed to be handled by the underlying x509 trust manager. - custom connection managers must be configured through createBuilder(ConnectionManagerFactory). Do not call HttpClientBuilder.setConnectionManager(HttpClientConnectionManager).
    Author:
    bjorncs
    • Method Detail

      • create

        public static org.apache.http.impl.client.HttpClientBuilder create()
        Create a client builder with default connection manager.
      • createWithBasicConnectionManager

        public static org.apache.http.impl.client.HttpClientBuilder createWithBasicConnectionManager()
        Creates a client builder with a BasicHttpClientConnectionManager configured. This connection manager uses a single connection for all requests. See Javadoc for details.