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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.conn.HttpClientConnectionManagernewConnectionManager(boolean disableSslValidation, int maxTotalConnections, int maxConnectionsPerRoute) org.apache.http.conn.HttpClientConnectionManagernewConnectionManager(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:ApacheHttpClientConnectionManagerFactoryCreates a newHttpClientConnectionManager.- Specified by:
newConnectionManagerin 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- TheRegistryBuilderto use in the connection manager.- Returns:
- A new
HttpClientConnectionManager.
-