Package org.forgerock.http.spi
Interface HttpClientProvider
public interface HttpClientProvider
A provider interface for obtaining
HttpClient instances. A
HttpClientProvider is loaded during construction of a new HTTP
Client. A provider is selected and its
newHttpClient(Options) method invoked in order to construct and
configure a new HttpClient.-
Method Summary
Modifier and TypeMethodDescriptionnewHttpClient(Options options) Returns a newHttpClientconfigured using the provided set of options.
-
Method Details
-
newHttpClient
Returns a newHttpClientconfigured using the provided set of options.- Parameters:
options- The client options (nevernull).- Returns:
- A new
HttpClientconfigured using the provided set of options. - Throws:
HttpApplicationException- If the client implementation could not be configured using the provided set of options.
-