Class ProblemWebClientCustomizer
java.lang.Object
io.github.belgif.rest.problem.spring.ProblemWebClientCustomizer
- All Implemented Interfaces:
org.springframework.boot.web.reactive.function.client.WebClientCustomizer
@Component
@ConditionalOnClass(org.springframework.web.reactive.function.client.WebClient.class)
public class ProblemWebClientCustomizer
extends Object
implements org.springframework.boot.web.reactive.function.client.WebClientCustomizer
WebClientCustomizer that registers a filter that converts problem responses to Problem exceptions.
NOTE: This class is intentionally duplicated in belgif-rest-problem-spring-boot-3,
to address a (compatibility issue).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
customize
(org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder)
-
Constructor Details
-
ProblemWebClientCustomizer
public ProblemWebClientCustomizer()
-
-
Method Details
-
customize
public void customize(org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder) - Specified by:
customize
in interfaceorg.springframework.boot.web.reactive.function.client.WebClientCustomizer
-