类 ClientHttpRequestFactories
java.lang.Object
org.springframework.boot.web.client.ClientHttpRequestFactories
@Deprecated(since="3.4.0",
forRemoval=true)
public final class ClientHttpRequestFactories
extends Object
已过时, 待删除: 此 API 元素将从以后的版本中删除。
Utility class that can be used to create
ClientHttpRequestFactory
instances
configured using given ClientHttpRequestFactorySettings
.- 从以下版本开始:
- 3.0.0
- 作者:
- Andy Wilkinson, Phillip Webb, Scott Frederick
-
方法概要
修饰符和类型方法说明static <T extends ClientHttpRequestFactory>
Tget
(Class<T> requestFactoryType, ClientHttpRequestFactorySettings settings) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Return a newClientHttpRequestFactory
of the givenrequestFactoryType
, applyingClientHttpRequestFactorySettings
using reflection if necessary.static <T extends ClientHttpRequestFactory>
Tget
(Supplier<T> requestFactorySupplier, ClientHttpRequestFactorySettings settings) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Return a newClientHttpRequestFactory
from the given supplier, applyingClientHttpRequestFactorySettings
using reflection.static ClientHttpRequestFactory
get
(ClientHttpRequestFactorySettings settings) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Return aClientHttpRequestFactory
implementation with the givensettings
applied.
-
方法详细资料
-
get
已过时, 待删除: 此 API 元素将从以后的版本中删除。Return aClientHttpRequestFactory
implementation with the givensettings
applied. The first of the following implementations whose dependenciesare available
is returned:- 参数:
settings
- the settings to apply- 返回:
- a new
ClientHttpRequestFactory
-
get
public static <T extends ClientHttpRequestFactory> T get(Class<T> requestFactoryType, ClientHttpRequestFactorySettings settings) 已过时, 待删除: 此 API 元素将从以后的版本中删除。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)
.- 类型参数:
T
- theClientHttpRequestFactory
type- 参数:
requestFactoryType
- theClientHttpRequestFactory
typesettings
- the settings to apply- 返回:
- a new
ClientHttpRequestFactory
instance
-
get
public static <T extends ClientHttpRequestFactory> T get(Supplier<T> requestFactorySupplier, ClientHttpRequestFactorySettings settings) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Return a newClientHttpRequestFactory
from the given supplier, applyingClientHttpRequestFactorySettings
using reflection.- 类型参数:
T
- theClientHttpRequestFactory
type- 参数:
requestFactorySupplier
- theClientHttpRequestFactory
suppliersettings
- the settings to apply- 返回:
- a new
ClientHttpRequestFactory
instance
-
ClientHttpRequestFactoryBuilder