Package org.springframework.vault.client
Class ClientHttpConnectorFactory.JettyClient
java.lang.Object
org.springframework.vault.client.ClientHttpConnectorFactory.JettyClient
- Enclosing class:
- ClientHttpConnectorFactory
Utility methods to create
ClientHttpRequestFactory
using the Jetty Client.- Author:
- Mark Paluch
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.jetty.client.HttpClient
configureClient
(org.eclipse.jetty.client.HttpClient httpClient, ClientOptions options) static org.eclipse.jetty.client.HttpClient
getHttpClient
(SslConfiguration sslConfiguration) static JettyClientHttpConnector
usingJetty
(ClientOptions options, SslConfiguration sslConfiguration) Create aClientHttpConnector
using Jetty.
-
Constructor Details
-
JettyClient
public JettyClient()
-
-
Method Details
-
usingJetty
public static JettyClientHttpConnector usingJetty(ClientOptions options, SslConfiguration sslConfiguration) throws GeneralSecurityException, IOException Create aClientHttpConnector
using Jetty.- Parameters:
options
- must not be nullsslConfiguration
- must not be null- Returns:
- a new and configured
JettyClientHttpConnector
instance. - Throws:
GeneralSecurityException
IOException
-
configureClient
public static org.eclipse.jetty.client.HttpClient configureClient(org.eclipse.jetty.client.HttpClient httpClient, ClientOptions options) -
getHttpClient
public static org.eclipse.jetty.client.HttpClient getHttpClient(SslConfiguration sslConfiguration) throws IOException, GeneralSecurityException - Throws:
IOException
GeneralSecurityException
-