Class NotFoundRestClientAdapterDecorator

java.lang.Object
org.springframework.web.service.invoker.HttpExchangeAdapterDecorator
org.springframework.web.client.support.NotFoundRestClientAdapterDecorator
All Implemented Interfaces:
HttpExchangeAdapter

public final class NotFoundRestClientAdapterDecorator extends HttpExchangeAdapterDecorator
HttpExchangeAdapterDecorator that suppresses the HttpClientErrorException.NotFound exception raised on a 404 response and returns a ResponseEntity with the status set to HttpStatus.NOT_FOUND status, or null from exchangeForBody(HttpRequestValues, ParameterizedTypeReference).
Since:
7.0
Author:
Rossen Stoyanchev