Package org.springframework.vault.client
Class ClientHttpConnectorFactory.JdkHttpClient
java.lang.Object
org.springframework.vault.client.ClientHttpConnectorFactory.JdkHttpClient
- Enclosing class:
- ClientHttpConnectorFactory
ClientHttpRequestFactory
using the JDK's HttpClient.- Author:
- Mark Paluch
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic HttpClient.Builder
getBuilder
(ClientOptions options, SslConfiguration sslConfiguration) static JdkClientHttpConnector
usingJdkHttpClient
(ClientOptions options, SslConfiguration sslConfiguration) Create aJdkClientHttpConnector
using the JDK's HttpClient.
-
Constructor Details
-
JdkHttpClient
public JdkHttpClient()
-
-
Method Details
-
usingJdkHttpClient
public static JdkClientHttpConnector usingJdkHttpClient(ClientOptions options, SslConfiguration sslConfiguration) throws GeneralSecurityException, IOException Create aJdkClientHttpConnector
using the JDK's HttpClient.- Parameters:
options
- must not be nullsslConfiguration
- must not be null- Returns:
- a new and configured
JdkClientHttpConnector
instance. - Throws:
GeneralSecurityException
IOException
-
getBuilder
public static HttpClient.Builder getBuilder(ClientOptions options, SslConfiguration sslConfiguration) throws GeneralSecurityException, IOException - Throws:
GeneralSecurityException
IOException
-