Class RestTemplatePostProcessor
- java.lang.Object
-
- io.mosip.kernel.auth.defaultadapter.config.RestTemplatePostProcessor
-
- All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor
@Configuration public class RestTemplatePostProcessor extends Object implements org.springframework.beans.factory.config.BeanPostProcessor
Takes care of adding @RestTemplateInterceptorto all the RestTemplate beans to automatically handle client-side load balancing- Since:
- 1.2.0-rc2-SNAPSHOT
- Author:
- Anusha
-
-
Constructor Summary
Constructors Constructor Description RestTemplatePostProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectpostProcessAfterInitialization(Object bean, String beanName)ObjectpostProcessBeforeInitialization(Object bean, String beanName)RestTemplateInterceptorrestTemplateInterceptor()org.springframework.http.client.SimpleClientHttpRequestFactorysimpleClientHttpRequestFactory()
-
-
-
Method Detail
-
restTemplateInterceptor
@Bean public RestTemplateInterceptor restTemplateInterceptor()
-
simpleClientHttpRequestFactory
@Bean public org.springframework.http.client.SimpleClientHttpRequestFactory simpleClientHttpRequestFactory()
-
postProcessBeforeInitialization
public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
- Specified by:
postProcessBeforeInitializationin interfaceorg.springframework.beans.factory.config.BeanPostProcessor- Throws:
org.springframework.beans.BeansException
-
postProcessAfterInitialization
public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
- Specified by:
postProcessAfterInitializationin interfaceorg.springframework.beans.factory.config.BeanPostProcessor- Throws:
org.springframework.beans.BeansException
-
-