类 InterceptingHttpAccessor
- 直接已知子类:
RestTemplate
RestTemplate
and other HTTP accessing gateway helpers, adding interceptor-related
properties to HttpAccessor's common properties.
Not intended to be used directly.
See RestTemplate for an entry point.
- 从以下版本开始:
- 4.0
- 作者:
- Arjen Poutsma, Juergen Hoeller
- 另请参阅:
-
字段概要
字段从类继承的字段 cn.taketoday.http.client.support.HttpAccessor
logger -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Get the request interceptors that this accessor uses.Overridden to expose anInterceptingClientHttpRequestFactoryif necessary.voidsetInterceptors(ClientHttpRequestInterceptor... interceptors) Set the request interceptors that this accessor should use.voidsetInterceptors(List<ClientHttpRequestInterceptor> interceptors) Set the request interceptors that this accessor should use.voidsetRequestFactory(ClientHttpRequestFactory requestFactory) Set the request factory that this accessor uses for obtaining client request handles.从类继承的方法 cn.taketoday.http.client.support.HttpAccessor
createRequest, getHttpRequestInitializers, setHttpRequestInitializers
-
字段详细资料
-
interceptors
-
interceptingRequestFactory
-
-
构造器详细资料
-
InterceptingHttpAccessor
public InterceptingHttpAccessor()
-
-
方法详细资料
-
setInterceptors
Set the request interceptors that this accessor should use.The interceptors will get immediately sorted according to their order.
- 另请参阅:
-
getRequestFactory()AnnotationAwareOrderComparator
-
setInterceptors
Set the request interceptors that this accessor should use.The interceptors will get immediately sorted according to their order.
Note: This method does not support concurrent changes, and in most cases should not be called after initialization on startup. See also related note on
RestTemplateregarding concurrent configuration changes.- 另请参阅:
-
getRequestFactory()AnnotationAwareOrderComparator
-
getInterceptors
Get the request interceptors that this accessor uses.The returned
Listis active and may be modified. Note, however, that the interceptors will not be resorted according to their order before theClientHttpRequestFactoryis built. -
setRequestFactory
Set the request factory that this accessor uses for obtaining client request handles.The default is a
SimpleClientHttpRequestFactorybased on the JDK's own HTTP libraries (HttpURLConnection).Note that the standard JDK HTTP library does not support the HTTP PATCH method. Configure the Apache HttpComponents or OkHttp request factory to enable PATCH.
-
getRequestFactory
Overridden to expose anInterceptingClientHttpRequestFactoryif necessary.- 覆盖:
getRequestFactory在类中HttpAccessor- 另请参阅:
-