Class CustomServerFeignConfig


  • @Configuration
    @EnableFeignClients
    public class CustomServerFeignConfig
    extends java.lang.Object
    Since:
    4/18/2021
    Author:
    Ali Alimohammadi
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.http.impl.client.HttpClientBuilder apacheHttpClientBuilder()  
      org.springframework.cloud.commons.httpclient.ApacheHttpClientFactory apacheHttpClientFactory​(org.apache.http.impl.client.HttpClientBuilder builder, org.springframework.cloud.commons.httpclient.ApacheHttpClientConnectionManagerFactory clientConnectionManagerFactory, CustomServerClientConfig customServerClientConfig)  
      org.springframework.http.client.ClientHttpRequestFactory clientHttpRequestFactory​(org.springframework.cloud.commons.httpclient.ApacheHttpClientFactory apacheHttpClientFactory)  
      CustomServerRestController clientServerRestController​(CustomServerClientConfig customServerClientConfig, feign.Client feignClient, feign.Request.Options options, java.util.List<feign.RequestInterceptor> requestInterceptors, feign.Contract feignContract, feign.codec.Decoder springDecoder, feign.codec.Encoder feignFormEncoder, feign.Retryer retryer, feign.Logger.Level logLevel, ir.a2mo.sdk.autoconfigure.impl.feign.CustomErrorDecoder customErrorDecoder)  
      org.springframework.cloud.commons.httpclient.ApacheHttpClientConnectionManagerFactory connectionManagerFactory()  
      ir.a2mo.sdk.autoconfigure.impl.feign.CustomErrorDecoder customErrorDecoder​(ir.a2mo.sdk.autoconfigure.impl.feign.CustomErrorDecoderConfig customErrorDecoderConfig)  
      ir.a2mo.sdk.autoconfigure.impl.feign.CustomErrorDecoderConfig customErrorDecoderConfig​(com.fasterxml.jackson.databind.ObjectMapper objectMapper)  
      CustomServerClientConfig customServerClientConfig()  
      com.fasterxml.jackson.databind.ObjectMapper customServerObjectMapper()  
      feign.Client feignClient​(org.apache.http.client.HttpClient httpClient)  
      feign.Contract feignContract()  
      feign.codec.Decoder feignDecoder​(com.fasterxml.jackson.databind.ObjectMapper objectMapper)  
      feign.codec.Encoder feignEncoder​(com.fasterxml.jackson.databind.ObjectMapper objectMapper)  
      feign.Logger.Level feignLoggerLevel()  
      org.apache.http.impl.client.CloseableHttpClient httpClient​(org.springframework.cloud.commons.httpclient.ApacheHttpClientFactory apacheHttpClientFactory)  
      feign.RequestInterceptor requestInterceptor()  
      java.util.List<feign.RequestInterceptor> requestInterceptors​(CustomServerClientConfig customServerClientConfig, feign.RequestInterceptor requestInterceptor)  
      feign.Retryer retryer()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CustomServerFeignConfig

        public CustomServerFeignConfig()
    • Method Detail

      • customServerObjectMapper

        @Bean("customServer-objectMapper")
        public com.fasterxml.jackson.databind.ObjectMapper customServerObjectMapper()
      • customServerClientConfig

        @Bean
        @ConfigurationProperties(prefix="custom-service")
        @ConditionalOnMissingBean
        public CustomServerClientConfig customServerClientConfig()
      • apacheHttpClientFactory

        @Bean("customServer-apacheHttpClientFactory")
        public org.springframework.cloud.commons.httpclient.ApacheHttpClientFactory apacheHttpClientFactory​(@Qualifier("customServer-httpClientBuilder")
                                                                                                            org.apache.http.impl.client.HttpClientBuilder builder,
                                                                                                            @Qualifier("customerServer-connectionManagerFactory")
                                                                                                            org.springframework.cloud.commons.httpclient.ApacheHttpClientConnectionManagerFactory clientConnectionManagerFactory,
                                                                                                            CustomServerClientConfig customServerClientConfig)
      • clientHttpRequestFactory

        @Bean("customServer-clientHttpRequestFactory")
        public org.springframework.http.client.ClientHttpRequestFactory clientHttpRequestFactory​(@Qualifier("customServer-apacheHttpClientFactory")
                                                                                                 org.springframework.cloud.commons.httpclient.ApacheHttpClientFactory apacheHttpClientFactory)
      • httpClient

        @Bean("customServer-httpclient")
        public org.apache.http.impl.client.CloseableHttpClient httpClient​(@Qualifier("customServer-apacheHttpClientFactory")
                                                                          org.springframework.cloud.commons.httpclient.ApacheHttpClientFactory apacheHttpClientFactory)
      • connectionManagerFactory

        @Bean("customerServer-connectionManagerFactory")
        public org.springframework.cloud.commons.httpclient.ApacheHttpClientConnectionManagerFactory connectionManagerFactory()
      • feignClient

        @Bean("customServer-feignClient")
        public feign.Client feignClient​(@Qualifier("customServer-httpclient")
                                        org.apache.http.client.HttpClient httpClient)
      • requestInterceptor

        @Bean("customServer-requestInterceptor")
        public feign.RequestInterceptor requestInterceptor()
      • requestInterceptors

        @Bean("customServer-requestInterceptors")
        public java.util.List<feign.RequestInterceptor> requestInterceptors​(CustomServerClientConfig customServerClientConfig,
                                                                            @Qualifier("customServer-requestInterceptor")
                                                                            feign.RequestInterceptor requestInterceptor)
      • feignContract

        @Bean("customServer-feignContract")
        public feign.Contract feignContract()
      • feignEncoder

        @Bean("customServer-feignEncoder")
        public feign.codec.Encoder feignEncoder​(@Qualifier("customServer-objectMapper")
                                                com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      • feignDecoder

        @Bean("customServer-feignDecoder")
        public feign.codec.Decoder feignDecoder​(@Qualifier("customServer-objectMapper")
                                                com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      • customErrorDecoderConfig

        @Bean("customServer-feignErrorDecoderConfig")
        public ir.a2mo.sdk.autoconfigure.impl.feign.CustomErrorDecoderConfig customErrorDecoderConfig​(@Qualifier("customServer-objectMapper")
                                                                                                      com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      • customErrorDecoder

        @Bean("customServer-feignErrorDecoder")
        public ir.a2mo.sdk.autoconfigure.impl.feign.CustomErrorDecoder customErrorDecoder​(@Qualifier("customServer-feignErrorDecoderConfig")
                                                                                          ir.a2mo.sdk.autoconfigure.impl.feign.CustomErrorDecoderConfig customErrorDecoderConfig)
      • apacheHttpClientBuilder

        @Bean("customServer-httpClientBuilder")
        public org.apache.http.impl.client.HttpClientBuilder apacheHttpClientBuilder()
      • retryer

        @Bean("customServer-retryer")
        @ConditionalOnMissingBean(name="customServer-retryer")
        public feign.Retryer retryer()
      • feignLoggerLevel

        @Bean("customServer-feignLoggerLevel")
        @ConditionalOnMissingBean(name="customServer-feignLoggerLevel")
        public feign.Logger.Level feignLoggerLevel()
      • clientServerRestController

        @Bean
        public CustomServerRestController clientServerRestController​(CustomServerClientConfig customServerClientConfig,
                                                                     @Qualifier("customServer-feignClient")
                                                                     feign.Client feignClient,
                                                                     @Qualifier("customServer-feignOption")
                                                                     feign.Request.Options options,
                                                                     @Qualifier("customServer-requestInterceptors")
                                                                     java.util.List<feign.RequestInterceptor> requestInterceptors,
                                                                     @Qualifier("customServer-feignContract")
                                                                     feign.Contract feignContract,
                                                                     @Qualifier("customServer-feignDecoder")
                                                                     feign.codec.Decoder springDecoder,
                                                                     @Qualifier("customServer-feignEncoder")
                                                                     feign.codec.Encoder feignFormEncoder,
                                                                     @Qualifier("customServer-retryer")
                                                                     feign.Retryer retryer,
                                                                     @Qualifier("customServer-feignLoggerLevel")
                                                                     feign.Logger.Level logLevel,
                                                                     @Qualifier("customServer-feignErrorDecoder")
                                                                     ir.a2mo.sdk.autoconfigure.impl.feign.CustomErrorDecoder customErrorDecoder)