Class InterceptingHttpAccessor
- Direct Known Subclasses:
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.
- Since:
- 3.0
- Author:
- Arjen Poutsma, Juergen Hoeller
- See Also:
-
Field Summary
Fields inherited from class HttpAccessor
logger -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Get the request interceptors that this accessor uses.Deprecated, for removal: This API element is subject to removal in a future version.Overridden to expose anInterceptingClientHttpRequestFactoryif necessary.voidsetInterceptors(List<ClientHttpRequestInterceptor> interceptors) Deprecated, for removal: This API element is subject to removal in a future version.Set the request interceptors that this accessor should use.voidsetRequestFactory(ClientHttpRequestFactory requestFactory) Deprecated, for removal: This API element is subject to removal in a future version.Set the request factory that this accessor uses for obtaining client request handles.Methods inherited from class HttpAccessor
createRequest, getBufferingPredicate, getClientHttpRequestInitializers, setBufferingPredicate, setClientHttpRequestInitializers
-
Constructor Details
-
InterceptingHttpAccessor
public InterceptingHttpAccessor()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
setInterceptors
Deprecated, for removal: This API element is subject to removal in a future version.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.- See Also:
-
getInterceptors
Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:HttpAccessorSet 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.
- Overrides:
setRequestFactoryin classHttpAccessor- See Also:
-
getRequestFactory
Deprecated, for removal: This API element is subject to removal in a future version.Overridden to expose anInterceptingClientHttpRequestFactoryif necessary.- Overrides:
getRequestFactoryin classHttpAccessor- See Also:
-