Class SecureWebClientCustomizer

java.lang.Object
africa.absa.inception.application.SecureWebClientCustomizer
All Implemented Interfaces:
org.springframework.boot.web.reactive.function.client.WebClientCustomizer

@Component @ConditionalOnBean(ApplicationSecurityConfiguration.class) public class SecureWebClientCustomizer extends Object implements org.springframework.boot.web.reactive.function.client.WebClientCustomizer
The SecureWebClientCustomizer class implements the callback interface that can be used to customize the WebClient.Builder to apply the security configuration.
Author:
Marcus Portmann
  • Constructor Details

    • SecureWebClientCustomizer

      public SecureWebClientCustomizer(ApplicationSecurityConfiguration applicationSecurityConfiguration)
      Constructs a new SecureWebClientCustomizer.
      Parameters:
      applicationSecurityConfiguration - the application security configuration
  • Method Details

    • customize

      public void customize(org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder)
      Specified by:
      customize in interface org.springframework.boot.web.reactive.function.client.WebClientCustomizer