Package org.springframework.vault.client
Class ClientHttpRequestFactoryFactory.HttpComponents
java.lang.Object
org.springframework.vault.client.ClientHttpRequestFactoryFactory.HttpComponents
- Enclosing class:
- ClientHttpRequestFactoryFactory
Utilities to create a
ClientHttpRequestFactory
for Apache Http Components.- Author:
- Mark Paluch
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.hc.client5.http.impl.classic.HttpClientBuilder
getHttpClientBuilder
(ClientOptions options, SslConfiguration sslConfiguration) usingHttpComponents
(ClientOptions options, SslConfiguration sslConfiguration) Create aClientHttpRequestFactory
using Apache Http Components.
-
Constructor Details
-
HttpComponents
public HttpComponents()
-
-
Method Details
-
usingHttpComponents
public static HttpComponentsClientHttpRequestFactory usingHttpComponents(ClientOptions options, SslConfiguration sslConfiguration) throws GeneralSecurityException, IOException Create aClientHttpRequestFactory
using Apache Http Components.- Parameters:
options
- must not be nullsslConfiguration
- must not be null- Returns:
- a new and configured
HttpComponentsClientHttpRequestFactory
instance. - Throws:
GeneralSecurityException
IOException
-
getHttpClientBuilder
public static org.apache.hc.client5.http.impl.classic.HttpClientBuilder getHttpClientBuilder(ClientOptions options, SslConfiguration sslConfiguration) throws GeneralSecurityException, IOException - Throws:
GeneralSecurityException
IOException
-