类 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 newClientHttpRequestFactoryof the givenrequestFactoryType, applyingClientHttpRequestFactorySettingsusing reflection if necessary.static <T extends ClientHttpRequestFactory>
Tget(Supplier<T> requestFactorySupplier, ClientHttpRequestFactorySettings settings) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Return a newClientHttpRequestFactoryfrom the given supplier, applyingClientHttpRequestFactorySettingsusing reflection.static ClientHttpRequestFactoryget(ClientHttpRequestFactorySettings settings) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Return aClientHttpRequestFactoryimplementation with the givensettingsapplied.
-
方法详细资料
-
get
已过时, 待删除: 此 API 元素将从以后的版本中删除。Return aClientHttpRequestFactoryimplementation with the givensettingsapplied. The first of the following implementations whose dependenciesare availableis 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 newClientHttpRequestFactoryof the givenrequestFactoryType, applyingClientHttpRequestFactorySettingsusing reflection if necessary. The following implementations are supported without the use of reflection:HttpComponentsClientHttpRequestFactoryJdkClientHttpRequestFactoryJettyClientHttpRequestFactoryReactorClientHttpRequestFactorySimpleClientHttpRequestFactory
requestFactoryTypeofClientHttpRequestFactoryis equivalent to callingget(ClientHttpRequestFactorySettings).- 类型参数:
T- theClientHttpRequestFactorytype- 参数:
requestFactoryType- theClientHttpRequestFactorytypesettings- the settings to apply- 返回:
- a new
ClientHttpRequestFactoryinstance
-
get
public static <T extends ClientHttpRequestFactory> T get(Supplier<T> requestFactorySupplier, ClientHttpRequestFactorySettings settings) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Return a newClientHttpRequestFactoryfrom the given supplier, applyingClientHttpRequestFactorySettingsusing reflection.- 类型参数:
T- theClientHttpRequestFactorytype- 参数:
requestFactorySupplier- theClientHttpRequestFactorysuppliersettings- the settings to apply- 返回:
- a new
ClientHttpRequestFactoryinstance
-
ClientHttpRequestFactoryBuilder