Class DefaultApacheHttpClientConnectionManagerFactory

java.lang.Object
org.springframework.cloud.commons.httpclient.DefaultApacheHttpClientConnectionManagerFactory
All Implemented Interfaces:
ApacheHttpClientConnectionManagerFactory

public class DefaultApacheHttpClientConnectionManagerFactory extends Object implements ApacheHttpClientConnectionManagerFactory
Default implementation of ApacheHttpClientConnectionManagerFactory.
Author:
Ryan Baxter, Michael Wirth
  • Constructor Details

    • DefaultApacheHttpClientConnectionManagerFactory

      public DefaultApacheHttpClientConnectionManagerFactory()
  • Method Details

    • newConnectionManager

      public org.apache.http.conn.HttpClientConnectionManager newConnectionManager(boolean disableSslValidation, int maxTotalConnections, int maxConnectionsPerRoute)
    • newConnectionManager

      public org.apache.http.conn.HttpClientConnectionManager newConnectionManager(boolean disableSslValidation, int maxTotalConnections, int maxConnectionsPerRoute, long timeToLive, TimeUnit timeUnit, org.apache.http.config.RegistryBuilder registryBuilder)
      Description copied from interface: ApacheHttpClientConnectionManagerFactory
      Creates a new HttpClientConnectionManager.
      Specified by:
      newConnectionManager in interface ApacheHttpClientConnectionManagerFactory
      Parameters:
      disableSslValidation - If true, SSL validation will be disabled.
      maxTotalConnections - The total number of connections.
      maxConnectionsPerRoute - The total number of connections per route.
      timeToLive - The time a connection is allowed to exist.
      timeUnit - The time unit for the time-to-live value.
      registryBuilder - The RegistryBuilder to use in the connection manager.
      Returns:
      A new HttpClientConnectionManager.