Class RestTemplateMsResponseErrorHandler
java.lang.Object
org.qubership.integration.platform.runtime.catalog.rest.handler.RestTemplateMsResponseErrorHandler
- All Implemented Interfaces:
org.springframework.web.client.ResponseErrorHandler
@Component
public class RestTemplateMsResponseErrorHandler
extends Object
implements org.springframework.web.client.ResponseErrorHandler
-
Constructor Summary
ConstructorsConstructorDescriptionRestTemplateMsResponseErrorHandler(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleError(org.springframework.http.client.ClientHttpResponse response) booleanhasError(org.springframework.http.client.ClientHttpResponse response) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.client.ResponseErrorHandler
handleError
-
Constructor Details
-
RestTemplateMsResponseErrorHandler
@Autowired public RestTemplateMsResponseErrorHandler(@Qualifier("primaryObjectMapper") com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
hasError
public boolean hasError(org.springframework.http.client.ClientHttpResponse response) throws IOException - Specified by:
hasErrorin interfaceorg.springframework.web.client.ResponseErrorHandler- Throws:
IOException
-
handleError
public void handleError(org.springframework.http.client.ClientHttpResponse response) throws IOException - Specified by:
handleErrorin interfaceorg.springframework.web.client.ResponseErrorHandler- Throws:
IOException
-