Class CloudFeignClientProvider
- java.lang.Object
-
- app.coronawarn.server.services.submission.verification.CloudFeignClientProvider
-
- All Implemented Interfaces:
FeignClientProvider
@Component @Profile("!disable-ssl-client-verification") public class CloudFeignClientProvider extends Object implements FeignClientProvider
-
-
Constructor Summary
Constructors Constructor Description CloudFeignClientProvider(SubmissionServiceConfig config, HostnameVerifierProvider hostnameVerifierProvider)
Creates aCloudFeignClientProvider
that provides feign clients with fixed key and trust material.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.cloud.commons.httpclient.ApacheHttpClientConnectionManagerFactory
createConnectionManager()
feign.Client
createFeignClient()
org.springframework.cloud.commons.httpclient.ApacheHttpClientFactory
createHttpClientFactory()
Creates anApacheHttpClientFactory
that validates SSL certificates and host names.
-
-
-
Constructor Detail
-
CloudFeignClientProvider
public CloudFeignClientProvider(SubmissionServiceConfig config, HostnameVerifierProvider hostnameVerifierProvider)
Creates aCloudFeignClientProvider
that provides feign clients with fixed key and trust material.
-
-
Method Detail
-
createFeignClient
public feign.Client createFeignClient()
- Specified by:
createFeignClient
in interfaceFeignClientProvider
-
createHttpClientFactory
@Bean public org.springframework.cloud.commons.httpclient.ApacheHttpClientFactory createHttpClientFactory()
Creates anApacheHttpClientFactory
that validates SSL certificates and host names.
-
createConnectionManager
@Bean public org.springframework.cloud.commons.httpclient.ApacheHttpClientConnectionManagerFactory createConnectionManager()
-
-