Class InterceptingHttpAccessor
- java.lang.Object
- org.springframework.http.client.support.HttpAccessor
- org.springframework.http.client.support.InterceptingHttpAccessor
- Direct Known Subclasses:
RestTemplate
public abstract class InterceptingHttpAccessor extends HttpAccessor
Base class forRestTemplate
and other HTTP accessing gateway helpers, adding interceptor-related properties toHttpAccessor
's common properties.Not intended to be used directly. See
RestTemplate
.- Author:
- Arjen Poutsma
Field Summary
Fields inherited from class org.springframework.http.client.support.HttpAccessor
logger
Constructor Summary
Constructors Constructor Description InterceptingHttpAccessor()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ClientHttpRequestInterceptor>
getInterceptors()
Return the request interceptor that this accessor uses.ClientHttpRequestFactory
getRequestFactory()
Return the request factory that this accessor uses for obtaining client request handles.void
setInterceptors(List<ClientHttpRequestInterceptor> interceptors)
Sets the request interceptors that this accessor should use.Methods inherited from class org.springframework.http.client.support.HttpAccessor
createRequest, setRequestFactory
Constructor Detail
InterceptingHttpAccessor
public InterceptingHttpAccessor()
Method Detail
setInterceptors
public void setInterceptors(List<ClientHttpRequestInterceptor> interceptors)
Sets the request interceptors that this accessor should use.
getInterceptors
public List<ClientHttpRequestInterceptor> getInterceptors()
Return the request interceptor that this accessor uses.
getRequestFactory
public ClientHttpRequestFactory getRequestFactory()
Description copied from class:HttpAccessor
Return the request factory that this accessor uses for obtaining client request handles.- Overrides:
getRequestFactory
in classHttpAccessor