@FunctionalInterface public interface HttpClientFactory
HttpClient instances based on the given Destination.
Caution: Implementations must be thread-safe.
| Modifier and Type | Method and Description |
|---|---|
default org.apache.http.client.HttpClient |
createHttpClient()
Creates an
HttpClient independent of any destination. |
org.apache.http.client.HttpClient |
createHttpClient(HttpDestinationProperties destination)
Creates an
HttpClient based on the given HttpDestinationProperties. |
@Nonnull default org.apache.http.client.HttpClient createHttpClient()
HttpClient independent of any destination.
Caution: Implementations must ensure that this method is thread-safe.
HttpClient, independent of any destination.HttpClientInstantiationException - if there occurred an error during the creation of the client.@Nonnull org.apache.http.client.HttpClient createHttpClient(@Nullable HttpDestinationProperties destination) throws DestinationAccessException, HttpClientInstantiationException
HttpClient based on the given HttpDestinationProperties.
Caution: Implementations must ensure that this method is thread-safe.
destination - The destination to create the HttpClient for.HttpClient based on the given Destination.DestinationAccessException - if the type of the destination is not HTTP.HttpClientInstantiationException - if there occurred an error during the creation of the client.Copyright © 2021 SAP SE. All rights reserved.