Package org.springframework.vault.client
Class ClientHttpRequestFactoryFactory
java.lang.Object
org.springframework.vault.client.ClientHttpRequestFactoryFactory
Factory for
ClientHttpRequestFactory
that supports Apache HTTP Components,
OkHttp, Netty and the JDK HTTP client (in that order). This factory configures a
ClientHttpRequestFactory
depending on the available dependencies.- Since:
- 2.2
- Author:
- Mark Paluch, Ryan Gow
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClientHttpRequestFactory
create
(ClientOptions options, SslConfiguration sslConfiguration)
-
Constructor Details
-
ClientHttpRequestFactoryFactory
public ClientHttpRequestFactoryFactory()
-
-
Method Details
-
create
public static ClientHttpRequestFactory create(ClientOptions options, SslConfiguration sslConfiguration) - Parameters:
options
- must not be nullsslConfiguration
- must not be null- Returns:
- a new
ClientHttpRequestFactory
. Lifecycle beans must be initialized after obtaining.
-