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
-
Field Summary
Fields inherited from interface org.springframework.cloud.commons.httpclient.ApacheHttpClientConnectionManagerFactory
HTTP_SCHEME, HTTPS_SCHEME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.conn.HttpClientConnectionManager
newConnectionManager
(boolean disableSslValidation, int maxTotalConnections, int maxConnectionsPerRoute) org.apache.http.conn.HttpClientConnectionManager
newConnectionManager
(boolean disableSslValidation, int maxTotalConnections, int maxConnectionsPerRoute, long timeToLive, TimeUnit timeUnit, org.apache.http.config.RegistryBuilder registryBuilder) Creates a newHttpClientConnectionManager
.
-
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 newHttpClientConnectionManager
.- Specified by:
newConnectionManager
in interfaceApacheHttpClientConnectionManagerFactory
- 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
- TheRegistryBuilder
to use in the connection manager.- Returns:
- A new
HttpClientConnectionManager
.
-