Class FederationFeignHttpClientProvider
- java.lang.Object
-
- app.coronawarn.server.common.federation.client.FederationFeignHttpClientProvider
-
@Component public class FederationFeignHttpClientProvider extends Object
Creates a dedicated http client used by Feign when performing http calls to the Federation Gateway Service.
-
-
Constructor Summary
Constructors Constructor Description FederationFeignHttpClientProvider(FederationGatewayConfig config)
Construct Provider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.cloud.commons.httpclient.ApacheHttpClientConnectionManagerFactory
createConnectionManager()
Creates connection manager.feign.Client
createFeignClient()
Creates a FeignClient.
-
-
-
Constructor Detail
-
FederationFeignHttpClientProvider
public FederationFeignHttpClientProvider(FederationGatewayConfig config)
Construct Provider.- Parameters:
config
- .
-
-
Method Detail
-
createFeignClient
@Bean public feign.Client createFeignClient()
Creates a FeignClient.
-
createConnectionManager
@Bean public org.springframework.cloud.commons.httpclient.ApacheHttpClientConnectionManagerFactory createConnectionManager()
Creates connection manager.- Returns:
- ApacheHttpClientConnectionManagerFactory.
-
-