Package org.forgerock.http.spi
Interface HttpClientProvider
-
public interface HttpClientProvider
A provider interface for obtainingHttpClient
instances. AHttpClientProvider
is loaded during construction of a new HTTPClient
. A provider is selected and itsnewHttpClient(Options)
method invoked in order to construct and configure a newHttpClient
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpClient
newHttpClient(Options options)
Returns a newHttpClient
configured using the provided set of options.
-
-
-
Method Detail
-
newHttpClient
HttpClient newHttpClient(Options options) throws HttpApplicationException
Returns a newHttpClient
configured using the provided set of options.- Parameters:
options
- The client options (nevernull
).- Returns:
- A new
HttpClient
configured using the provided set of options. - Throws:
HttpApplicationException
- If the client implementation could not be configured using the provided set of options.
-
-