Class AddSenderSystemHeader
java.lang.Object
ch.admin.bag.covidcertificate.rest.tracing.AddSenderSystemHeader
- All Implemented Interfaces:
org.springframework.boot.web.reactive.function.client.WebClientCustomizer
@Configuration @ConditionalOnClass(org.springframework.web.reactive.function.client.WebClient.Builder.class) public class AddSenderSystemHeader extends Object implements org.springframework.boot.web.reactive.function.client.WebClientCustomizer
Add a header with the name of the current service to each REST-Call
-
Field Summary
Fields Modifier and Type Field Description static StringAPPLICATION_NAME_HEADER -
Constructor Summary
Constructors Constructor Description AddSenderSystemHeader(TracerConfiguration tracerConfiguration) -
Method Summary
Modifier and Type Method Description voidcustomize(org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder)
-
Field Details
-
APPLICATION_NAME_HEADER
- See Also:
- Constant Field Values
-
-
Constructor Details
-
AddSenderSystemHeader
-
-
Method Details
-
customize
public void customize(org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder)- Specified by:
customizein interfaceorg.springframework.boot.web.reactive.function.client.WebClientCustomizer
-