public class ClientHttpRequestFactoryFactory extends Object
ClientHttpRequestFactory
that supports Apache HTTP Components,
OkHttp, Netty and the JDK HTTP client (in that order). This factory configures a
ClientHttpRequestFactory
depending on the available dependencies.Modifier and Type | Class and Description |
---|---|
static class |
ClientHttpRequestFactoryFactory.HttpComponents
Utilities to create a
ClientHttpRequestFactory for Apache Http Components. |
static class |
ClientHttpRequestFactoryFactory.OkHttp3
Utilities to create a
ClientHttpRequestFactory for the
OkHttpClient . |
Constructor and Description |
---|
ClientHttpRequestFactoryFactory() |
Modifier and Type | Method and Description |
---|---|
static org.springframework.http.client.ClientHttpRequestFactory |
create(ClientOptions options,
SslConfiguration sslConfiguration)
|
public static org.springframework.http.client.ClientHttpRequestFactory create(ClientOptions options, SslConfiguration sslConfiguration)
options
- must not be nullsslConfiguration
- must not be nullClientHttpRequestFactory
. Lifecycle beans must be initialized
after obtaining.Copyright © 2016–2024 Pivotal Software, Inc.. All rights reserved.