public final 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 | Method and Description |
---|---|
static ClientHttpRequestFactory |
create(ClientOptions options)
Create a
ClientHttpRequestFactory for the given ClientOptions . |
public static ClientHttpRequestFactory create(ClientOptions options)
ClientHttpRequestFactory
for the given ClientOptions
.options
- must not be nullClientHttpRequestFactory
. Lifecycle beans must be initialized
after obtaining.