Class RestTemplateErrorHandlerAutoConfiguration
java.lang.Object
org.bremersee.exception.spring.boot.autoconfigure.servlet.RestTemplateErrorHandlerAutoConfiguration
- All Implemented Interfaces:
org.springframework.boot.web.client.RestTemplateCustomizer
@ConditionalOnWebApplication(type=SERVLET)
@ConditionalOnClass(name={"com.fasterxml.jackson.databind.ObjectMapper","org.bremersee.exception.RestApiResponseErrorHandler"})
@AutoConfigureAfter(RestApiExceptionParserForWebAutoConfiguration.class)
@AutoConfiguration
@Order(100)
public class RestTemplateErrorHandlerAutoConfiguration
extends Object
implements org.springframework.boot.web.client.RestTemplateCustomizer
The rest template error handler autoconfiguration.
- Author:
- Christian Bremer
-
Constructor Summary
ConstructorDescriptionRestTemplateErrorHandlerAutoConfiguration
(org.springframework.beans.factory.ObjectProvider<RestApiExceptionParser> restApiExceptionParser) Instantiates a new rest template error handler autoconfiguration. -
Method Summary
Modifier and TypeMethodDescriptionvoid
customize
(org.springframework.web.client.RestTemplate restTemplate)
-
Constructor Details
-
RestTemplateErrorHandlerAutoConfiguration
public RestTemplateErrorHandlerAutoConfiguration(org.springframework.beans.factory.ObjectProvider<RestApiExceptionParser> restApiExceptionParser) Instantiates a new rest template error handler autoconfiguration.- Parameters:
restApiExceptionParser
- the rest api exception parser
-
-
Method Details
-
customize
public void customize(org.springframework.web.client.RestTemplate restTemplate) - Specified by:
customize
in interfaceorg.springframework.boot.web.client.RestTemplateCustomizer
-