public abstract class InterceptingHttpAccessor extends HttpAccessor
RestTemplate
and other HTTP accessing gateway helpers, adding
interceptor-related properties to HttpAccessor
's common properties.
Not intended to be used directly. See RestTemplate
.
Modifier and Type | Field and Description |
---|---|
private java.util.List<ClientHttpRequestInterceptor> |
interceptors |
logger
Constructor and Description |
---|
InterceptingHttpAccessor() |
Modifier and Type | Method and Description |
---|---|
java.util.List<ClientHttpRequestInterceptor> |
getInterceptors()
Return the request interceptor that this accessor uses.
|
ClientHttpRequestFactory |
getRequestFactory()
Return the request factory that this accessor uses for obtaining
HttpRequests . |
void |
setInterceptors(java.util.List<ClientHttpRequestInterceptor> interceptors)
Sets the request interceptors that this accessor should use.
|
createRequest, setRequestFactory
private java.util.List<ClientHttpRequestInterceptor> interceptors
public void setInterceptors(java.util.List<ClientHttpRequestInterceptor> interceptors)
public java.util.List<ClientHttpRequestInterceptor> getInterceptors()
public ClientHttpRequestFactory getRequestFactory()
HttpAccessor
HttpRequests
.getRequestFactory
in class HttpAccessor