public class DefaultHttpClientFactory extends Object implements HttpClientFactory
CloseableHttpClient object. Facilitates certificate and client credentials-based
communication based on the identity service configuration from the binding.
HttpClient is configured with the following default values: - connection and connection request timeout - 5 s - socket timeout - 30 s - max connections - 200 - max connections per route - 20
If these values do not meet your requirements, please provide your own implementation of HttpClientFactory.
DEFAULT_HTTP_CLIENT_FACTORY, services| Constructor and Description |
|---|
DefaultHttpClientFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.impl.client.CloseableHttpClient |
createClient(ClientIdentity clientIdentity)
Provides CloseableHttpClient based on ClientIdentity details.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatepublic org.apache.http.impl.client.CloseableHttpClient createClient(ClientIdentity clientIdentity) throws HttpClientException
HttpClientFactorycreateClient in interface HttpClientFactoryclientIdentity - for X.509 certificate based communication
ClientCertificate implementation of ClientIdentity
interface should be providedHttpClientException - in case HTTPS Client could not be setupCopyright © 2023. All rights reserved.