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, Spencer Gibb
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Utilities to create aClientHttpRequestFactory
for Apache Http Components.static class
Utilities to create aClientHttpRequestFactory
for theOkHttpClient
. -
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.
-