Interface ApacheHttpClientConnectionManagerFactory
- All Known Implementing Classes:
DefaultApacheHttpClientConnectionManagerFactory
public interface ApacheHttpClientConnectionManagerFactory
Interface for creating an
HttpClientConnectionManager
.- Author:
- Ryan Baxter
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.conn.HttpClientConnectionManager
newConnectionManager
(boolean disableSslValidation, int maxTotalConnections, int maxConnectionsPerRoute, long timeToLive, TimeUnit timeUnit, org.apache.http.config.RegistryBuilder registryBuilder) Creates a newHttpClientConnectionManager
.
-
Field Details
-
HTTP_SCHEME
Scheme for HTTP based communication.- See Also:
-
HTTPS_SCHEME
Scheme for HTTPS based communication.- See Also:
-
-
Method Details
-
newConnectionManager
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
.- 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
.
-