public class ClientHttpRequestFactoryFactory
extends java.lang.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.Constructor and Description |
---|
ClientHttpRequestFactoryFactory() |
Modifier and Type | Method and Description |
---|---|
static org.springframework.http.client.ClientHttpRequestFactory |
create(ClientOptions options)
Create a
ClientHttpRequestFactory for the given ClientOptions . |
public static org.springframework.http.client.ClientHttpRequestFactory create(ClientOptions options)
ClientHttpRequestFactory
for the given ClientOptions
.options
- must not be nullClientHttpRequestFactory
. Lifecycle beans must be initialized
after obtaining.