Class ClientHttpRequestFactories
java.lang.Object
org.springframework.boot.web.client.ClientHttpRequestFactories
@Deprecated(since="3.4.0",
forRemoval=true)
public final class ClientHttpRequestFactories
extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Utility class that can be used to create
ClientHttpRequestFactory
instances
configured using given ClientHttpRequestFactorySettings
.- Since:
- 3.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends org.springframework.http.client.ClientHttpRequestFactory>
Tget
(Class<T> requestFactoryType, ClientHttpRequestFactorySettings settings) Deprecated, for removal: This API element is subject to removal in a future version.Return a newClientHttpRequestFactory
of the givenrequestFactoryType
, applyingClientHttpRequestFactorySettings
using reflection if necessary.static <T extends org.springframework.http.client.ClientHttpRequestFactory>
Tget
(Supplier<T> requestFactorySupplier, ClientHttpRequestFactorySettings settings) Deprecated, for removal: This API element is subject to removal in a future version.Return a newClientHttpRequestFactory
from the given supplier, applyingClientHttpRequestFactorySettings
using reflection.static org.springframework.http.client.ClientHttpRequestFactory
get
(ClientHttpRequestFactorySettings settings) Deprecated, for removal: This API element is subject to removal in a future version.Return aClientHttpRequestFactory
implementation with the givensettings
applied.
-
Method Details
-
get
public static org.springframework.http.client.ClientHttpRequestFactory get(ClientHttpRequestFactorySettings settings) Deprecated, for removal: This API element is subject to removal in a future version.Return aClientHttpRequestFactory
implementation with the givensettings
applied. The first of the following implementations whose dependenciesare available
is returned:HttpComponentsClientHttpRequestFactory
JettyClientHttpRequestFactory
ReactorClientHttpRequestFactory
SimpleClientHttpRequestFactory
- Parameters:
settings
- the settings to apply- Returns:
- a new
ClientHttpRequestFactory
-
get
public static <T extends org.springframework.http.client.ClientHttpRequestFactory> T get(Class<T> requestFactoryType, ClientHttpRequestFactorySettings settings) Deprecated, for removal: This API element is subject to removal in a future version.Return a newClientHttpRequestFactory
of the givenrequestFactoryType
, applyingClientHttpRequestFactorySettings
using reflection if necessary. The following implementations are supported without the use of reflection:HttpComponentsClientHttpRequestFactory
JdkClientHttpRequestFactory
JettyClientHttpRequestFactory
ReactorClientHttpRequestFactory
SimpleClientHttpRequestFactory
requestFactoryType
ofClientHttpRequestFactory
is equivalent to callingget(ClientHttpRequestFactorySettings)
.- Type Parameters:
T
- theClientHttpRequestFactory
type- Parameters:
requestFactoryType
- theClientHttpRequestFactory
typesettings
- the settings to apply- Returns:
- a new
ClientHttpRequestFactory
instance
-
get
public static <T extends org.springframework.http.client.ClientHttpRequestFactory> T get(Supplier<T> requestFactorySupplier, ClientHttpRequestFactorySettings settings) Deprecated, for removal: This API element is subject to removal in a future version.Return a newClientHttpRequestFactory
from the given supplier, applyingClientHttpRequestFactorySettings
using reflection.- Type Parameters:
T
- theClientHttpRequestFactory
type- Parameters:
requestFactorySupplier
- theClientHttpRequestFactory
suppliersettings
- the settings to apply- Returns:
- a new
ClientHttpRequestFactory
instance
-
ClientHttpRequestFactoryBuilder