Class CustomerServiceAutoConfiguration.Providers
- java.lang.Object
-
- com.broadleafcommerce.customer.service.autoconfigure.CustomerServiceAutoConfiguration.Providers
-
- Enclosing class:
- CustomerServiceAutoConfiguration
@Configuration @EnableConfigurationProperties({SSLVerificationProperties.class,ExternalPaymentProperties.class}) public static class CustomerServiceAutoConfiguration.Providers extends Object
-
-
Constructor Summary
Constructors Constructor Description Providers()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.client.reactive.ClientHttpConnector
customerClientHttpConnector(SSLVerificationProperties sslVerificationProperties)
Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction>
customerOauth2FilterFunctionSupplier(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrations, Optional<org.springframework.http.client.reactive.ClientHttpConnector> clientHttpConnector)
We'll leave this with a general name as it can (and should) be reused in a flex package.org.springframework.web.reactive.function.client.WebClient
customerWebClient(Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction> oauth2FilterSupplier, com.fasterxml.jackson.databind.ObjectMapper objectMapper, Optional<org.springframework.http.client.reactive.ClientHttpConnector> clientHttpConnector)
-
-
-
Method Detail
-
customerWebClient
@Bean @ConditionalOnMissingBean(name="customerWebClient") public org.springframework.web.reactive.function.client.WebClient customerWebClient(@Qualifier("oAuth2FilterFunctionSupplier") Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction> oauth2FilterSupplier, com.fasterxml.jackson.databind.ObjectMapper objectMapper, @Qualifier("customerClientHttpConnector") Optional<org.springframework.http.client.reactive.ClientHttpConnector> clientHttpConnector)
-
customerOauth2FilterFunctionSupplier
@Bean(name="oAuth2FilterFunctionSupplier") @ConditionalOnMissingBean(name="oAuth2FilterFunctionSupplier") public Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction> customerOauth2FilterFunctionSupplier(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrations, @Qualifier("customerClientHttpConnector") Optional<org.springframework.http.client.reactive.ClientHttpConnector> clientHttpConnector)
We'll leave this with a general name as it can (and should) be reused in a flex package.- Parameters:
clientRegistrations
-clientHttpConnector
-- Returns:
-
customerClientHttpConnector
@Bean @ConditionalOnMissingBean(name="customerClientHttpConnector") public org.springframework.http.client.reactive.ClientHttpConnector customerClientHttpConnector(SSLVerificationProperties sslVerificationProperties) throws SSLException
- Throws:
SSLException
-
-