org.springframework.http.client.support
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 for RestTemplate
and other HTTP accessing gateway helpers, adding
interceptor-related properties to HttpAccessor
's common properties.
Not intended to be used directly. See RestTemplate
.
- Author:
- Arjen Poutsma
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InterceptingHttpAccessor
public InterceptingHttpAccessor()
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
HttpRequests
.
- Overrides:
getRequestFactory
in class HttpAccessor