public class DefaultHttpClientFactory extends AbstractHttpClientFactory
HttpClientFactory
.Modifier and Type | Class and Description |
---|---|
static class |
DefaultHttpClientFactory.DefaultHttpClientFactoryBuilder |
Constructor and Description |
---|
DefaultHttpClientFactory() |
Modifier and Type | Method and Description |
---|---|
static DefaultHttpClientFactory.DefaultHttpClientFactoryBuilder |
builder() |
protected org.apache.http.impl.conn.PoolingHttpClientConnectionManager |
getConnectionManager(HttpDestinationProperties destination)
Get the connection manager for the HTTP client builder.
|
protected int |
getMaxConnectionsPerRoute()
The maximum number of connections per route.
|
protected int |
getMaxConnectionsTotal()
The maximum number of connections in total.
|
protected org.apache.http.client.config.RequestConfig.Builder |
getRequestConfigBuilder(HttpDestinationProperties destination)
Get the request configuration builder for the HTTP client builder.
|
protected org.apache.http.config.SocketConfig.Builder |
getSocketConfigBuilder(HttpDestinationProperties destination)
Get the socket configuration builder for the HTTP client builder.
|
protected int |
getTimeoutMilliseconds()
The timeout threshold.
|
createHttpClient, createHttpClient, getHttpClientBuilder
@Nonnull protected org.apache.http.client.config.RequestConfig.Builder getRequestConfigBuilder(@Nullable HttpDestinationProperties destination)
AbstractHttpClientFactory
getRequestConfigBuilder
in class AbstractHttpClientFactory
destination
- The optional destination reference.@Nonnull protected org.apache.http.config.SocketConfig.Builder getSocketConfigBuilder(@Nullable HttpDestinationProperties destination)
AbstractHttpClientFactory
getSocketConfigBuilder
in class AbstractHttpClientFactory
destination
- The optional destination reference.@Nonnull protected org.apache.http.impl.conn.PoolingHttpClientConnectionManager getConnectionManager(@Nullable HttpDestinationProperties destination) throws GeneralSecurityException, IOException
AbstractHttpClientFactory
getConnectionManager
in class AbstractHttpClientFactory
destination
- The optional destination reference.GeneralSecurityException
- If trust store or key store could not be loaded.IOException
- If trust store or key store could not be loaded.@Nonnull public static DefaultHttpClientFactory.DefaultHttpClientFactoryBuilder builder()
protected int getTimeoutMilliseconds()
protected int getMaxConnectionsPerRoute()
protected int getMaxConnectionsTotal()
Copyright © 2020 SAP SE. All rights reserved.