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
.
logger
Constructor and Description |
---|
InterceptingHttpAccessor() |
Modifier and Type | Method and Description |
---|---|
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(List<ClientHttpRequestInterceptor> interceptors)
Sets the request interceptors that this accessor should use.
|
createRequest, setRequestFactory
public void setInterceptors(List<ClientHttpRequestInterceptor> interceptors)
public List<ClientHttpRequestInterceptor> getInterceptors()
public ClientHttpRequestFactory getRequestFactory()
HttpAccessor
HttpRequests
.getRequestFactory
in class HttpAccessor