Class BaseRequestInterceptor
java.lang.Object
org.springframework.cloud.openfeign.encoding.BaseRequestInterceptor
- All Implemented Interfaces:
feign.RequestInterceptor
- Direct Known Subclasses:
FeignAcceptGzipEncodingInterceptor,FeignContentGzipEncodingInterceptor
The base request interceptor.
- Author:
- Jakub Narloch
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseRequestInterceptor(FeignClientEncodingProperties properties) Creates new instance ofBaseRequestInterceptor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdds the header if it wasn't yet specified.protected FeignClientEncodingPropertiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface feign.RequestInterceptor
apply
-
Constructor Details
-
BaseRequestInterceptor
Creates new instance ofBaseRequestInterceptor.- Parameters:
properties- the encoding properties
-
-
Method Details
-
addHeader
Adds the header if it wasn't yet specified.- Parameters:
requestTemplate- the requestname- the header namevalues- the header values
-
getProperties
-