Class VespaHttpClientBuilder


  • public class VespaHttpClientBuilder
    extends java.lang.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 Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.apache.http.impl.client.HttpClientBuilder create()
      Create a client builder with default connection manager.
      static org.apache.http.impl.client.HttpClientBuilder create​(VespaHttpClientBuilder.ConnectionManagerFactory connectionManagerFactory)
      Create a client builder with a user specified connection manager.
      static org.apache.http.impl.client.HttpClientBuilder createWithBasicConnectionManager()
      Creates a client builder with a BasicHttpClientConnectionManager configured.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.