org.springframework.web.client.RestTemplate
and other HTTP accessing gateway helpers, adding interceptor-related
properties to HttpAccessor's common properties.
Not intended to be used directly.
See org. for an entry point.
ClientHttpRequestInterceptor, InterceptingClientHttpRequestFactory, org.springframework.web.client.RestTemplate
| Modifier and Type | Field and Description |
|---|---|
| private volatile ClientHttpRequestFactory | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public List | |
| public ClientHttpRequestFactory | getRequestFactory()
Overrides org. InterceptingClientHttpRequestFactory
if necessary.
|
| public void | setInterceptors(List<ClientHttpRequestInterceptor> interceptors)
Set the request interceptors that this accessor should use. |
| public void | setRequestFactory(ClientHttpRequestFactory requestFactory)
Overrides org. |
| interceptingRequestFactory | back to summary |
|---|---|
| private volatile ClientHttpRequestFactory interceptingRequestFactory
| |
| interceptors | back to summary |
|---|---|
| private final List<ClientHttpRequestInterceptor> interceptors | |
| InterceptingHttpAccessor | back to summary |
|---|---|
| public InterceptingHttpAccessor() | |
| getInterceptors | back to summary |
|---|---|
| public List Get the request interceptors that this accessor uses. The returned | |
| getRequestFactory | back to summary |
|---|---|
| public ClientHttpRequestFactory getRequestFactory() Overrides org. Overridden to expose an
| |
| setInterceptors | back to summary |
|---|---|
| public void setInterceptors(List<ClientHttpRequestInterceptor> interceptors) 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 | |
| setRequestFactory | back to summary |
|---|---|
| public void setRequestFactory(ClientHttpRequestFactory requestFactory) Overrides org. Doc from org. Set the request factory that this accessor uses for obtaining client request handles. The default is a 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.
| |