Class ClientHttpRequestFactoryFactory
java.lang.Object
org.springframework.credhub.configuration.ClientHttpRequestFactoryFactory
Factory for
ClientHttpRequestFactory
that supports Apache HTTP Components,
OkHttp the JDK HTTP client (in that order). This factory configures a
ClientHttpRequestFactory
depending on the available dependencies.- Author:
- Mark Paluch, Scott Frederick
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClientHttpRequestFactory
create
(ClientOptions options) Create aClientHttpRequestFactory
for the givenClientOptions
.
-
Method Details
-
create
Create aClientHttpRequestFactory
for the givenClientOptions
.- Parameters:
options
- must not be null- Returns:
- a new
ClientHttpRequestFactory
. Lifecycle beans must be initialized after obtaining.
-