Package org.springframework.vault.client
Class ClientHttpConnectorFactory.HttpComponents
java.lang.Object
org.springframework.vault.client.ClientHttpConnectorFactory.HttpComponents
- Enclosing class:
- ClientHttpConnectorFactory
Utility methods to create
ClientHttpRequestFactory
using Apache Http
Components.- Author:
- Mark Paluch
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder
createHttpAsyncClientBuilder
(ClientOptions options, SslConfiguration sslConfiguration) usingHttpComponents
(ClientOptions options, SslConfiguration sslConfiguration) Create aClientHttpConnector
using Apache Http Components.
-
Constructor Details
-
HttpComponents
public HttpComponents()
-
-
Method Details
-
usingHttpComponents
public static HttpComponentsClientHttpConnector usingHttpComponents(ClientOptions options, SslConfiguration sslConfiguration) throws GeneralSecurityException, IOException Create aClientHttpConnector
using Apache Http Components.- Parameters:
options
- must not be nullsslConfiguration
- must not be null- Returns:
- a new and configured
HttpComponentsClientHttpConnector
instance. - Throws:
GeneralSecurityException
IOException
-
createHttpAsyncClientBuilder
public static org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder createHttpAsyncClientBuilder(ClientOptions options, SslConfiguration sslConfiguration) throws GeneralSecurityException, IOException - Throws:
GeneralSecurityException
IOException
-