public static class ClientHttpRequestFactoryFactory.OkHttp3 extends Object
ClientHttpRequestFactory for the
OkHttpClient.| Constructor and Description |
|---|
OkHttp3() |
| Modifier and Type | Method and Description |
|---|---|
static okhttp3.OkHttpClient.Builder |
getBuilder(ClientOptions options,
SslConfiguration sslConfiguration) |
static org.springframework.http.client.OkHttp3ClientHttpRequestFactory |
usingOkHttp3(ClientOptions options,
SslConfiguration sslConfiguration)
Create a
ClientHttpRequestFactory using OkHttpClient. |
public static org.springframework.http.client.OkHttp3ClientHttpRequestFactory usingOkHttp3(ClientOptions options, SslConfiguration sslConfiguration) throws GeneralSecurityException, IOException
ClientHttpRequestFactory using OkHttpClient.options - must not be nullsslConfiguration - must not be nullOkHttp3ClientHttpRequestFactory instance.GeneralSecurityExceptionIOExceptionpublic static okhttp3.OkHttpClient.Builder getBuilder(ClientOptions options, SslConfiguration sslConfiguration) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionCopyright © 2016–2024 Pivotal Software, Inc.. All rights reserved.