Interface ApacheHttpClientConnectionManagerFactory
-
- All Known Implementing Classes:
DefaultApacheHttpClientConnectionManagerFactory
public interface ApacheHttpClientConnectionManagerFactory
Interface for creating anHttpClientConnectionManager
.- Author:
- Ryan Baxter
-
-
Field Summary
Fields Modifier and Type Field Description static String
HTTP_SCHEME
Scheme for HTTP based communication.static String
HTTPS_SCHEME
Scheme for HTTPS based communication.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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
.
-
-
-
Field Detail
-
HTTP_SCHEME
static final String HTTP_SCHEME
Scheme for HTTP based communication.- See Also:
- Constant Field Values
-
HTTPS_SCHEME
static final String HTTPS_SCHEME
Scheme for HTTPS based communication.- See Also:
- Constant Field Values
-
-
Method Detail
-
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
.
-
-