Uses of Interface
org.springframework.http.client.ClientHttpRequestInterceptor
Package
Description
Contains an abstraction over client-side HTTP.
This package provides generic HTTP support classes,
to be used by higher-level classes like RestTemplate.
Core package of the client-side web support.
-
Uses of ClientHttpRequestInterceptor in org.springframework.http.client
Modifier and TypeMethodDescriptiondefault ClientHttpRequestInterceptor
ClientHttpRequestInterceptor.andThen
(ClientHttpRequestInterceptor interceptor) Return a new interceptor that invokesthis
interceptor first, and then the one that's passed in.Modifier and TypeMethodDescriptiondefault ClientHttpRequestInterceptor
ClientHttpRequestInterceptor.andThen
(ClientHttpRequestInterceptor interceptor) Return a new interceptor that invokesthis
interceptor first, and then the one that's passed in.ModifierConstructorDescriptionInterceptingClientHttpRequestFactory
(ClientHttpRequestFactory requestFactory, @Nullable List<ClientHttpRequestInterceptor> interceptors) Create a new instance with the given parameters.InterceptingClientHttpRequestFactory
(ClientHttpRequestFactory requestFactory, @Nullable List<ClientHttpRequestInterceptor> interceptors, @Nullable BiPredicate<URI, HttpMethod> bufferingPredicate) Constructor variant with an additional predicate to decide whether to buffer the response. -
Uses of ClientHttpRequestInterceptor in org.springframework.http.client.support
Modifier and TypeClassDescriptionclass
ClientHttpRequestInterceptor
to apply a given HTTP Basic Authentication username/password pair, unless a customAuthorization
header has already been set.Modifier and TypeMethodDescriptionInterceptingHttpAccessor.getInterceptors()
Get the request interceptors that this accessor uses.Modifier and TypeMethodDescriptionvoid
InterceptingHttpAccessor.setInterceptors
(List<ClientHttpRequestInterceptor> interceptors) Set the request interceptors that this accessor should use. -
Uses of ClientHttpRequestInterceptor in org.springframework.web.client
Modifier and TypeMethodDescriptionRestClient.Builder.requestInterceptor
(ClientHttpRequestInterceptor interceptor) Add the given request interceptor to the end of the interceptor chain.Modifier and TypeMethodDescriptionRestClient.Builder.requestInterceptors
(Consumer<List<ClientHttpRequestInterceptor>> interceptorsConsumer) Manipulate the interceptors with the given consumer.