Package org.springframework.vault.client
Class ClientHttpRequestFactoryFactory.OkHttp3
java.lang.Object
org.springframework.vault.client.ClientHttpRequestFactoryFactory.OkHttp3
- Enclosing class:
- ClientHttpRequestFactoryFactory
Utilities to create a
ClientHttpRequestFactory
for the
OkHttpClient
.- Author:
- Mark Paluch
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic okhttp3.OkHttpClient.Builder
getBuilder
(ClientOptions options, SslConfiguration sslConfiguration) usingOkHttp3
(ClientOptions options, SslConfiguration sslConfiguration) Create aClientHttpRequestFactory
usingOkHttpClient
.
-
Constructor Details
-
OkHttp3
public OkHttp3()
-
-
Method Details
-
usingOkHttp3
public static OkHttp3ClientHttpRequestFactory usingOkHttp3(ClientOptions options, SslConfiguration sslConfiguration) throws GeneralSecurityException, IOException Create aClientHttpRequestFactory
usingOkHttpClient
.- Parameters:
options
- must not be nullsslConfiguration
- must not be null- Returns:
- a new and configured
OkHttp3ClientHttpRequestFactory
instance. - Throws:
GeneralSecurityException
IOException
-
getBuilder
public static okhttp3.OkHttpClient.Builder getBuilder(ClientOptions options, SslConfiguration sslConfiguration) throws GeneralSecurityException, IOException - Throws:
GeneralSecurityException
IOException
-