Class DefaultApacheHttpClientConnectionManagerFactory
- java.lang.Object
-
- org.springframework.cloud.commons.httpclient.DefaultApacheHttpClientConnectionManagerFactory
-
- All Implemented Interfaces:
ApacheHttpClientConnectionManagerFactory
public class DefaultApacheHttpClientConnectionManagerFactory extends Object implements ApacheHttpClientConnectionManagerFactory
Default implementation ofApacheHttpClientConnectionManagerFactory.- Author:
- Ryan Baxter, Michael Wirth
-
-
Field Summary
-
Fields inherited from interface org.springframework.cloud.commons.httpclient.ApacheHttpClientConnectionManagerFactory
HTTP_SCHEME, HTTPS_SCHEME
-
-
Constructor Summary
Constructors Constructor Description DefaultApacheHttpClientConnectionManagerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.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.
-
-
-
Method Detail
-
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.
-
-