public class RestProxyResponseErrorHandler extends Object implements org.springframework.web.client.ResponseErrorHandler
ResponseErrorHandler implementation that does nothing and considers every
ClientHttpRequest a success.
This class does nothing because RestProxy is responsible soley for relaying requests and
responses. We don't care what's in the response, we just forward it on. It's up to the client to deal
with responses, whether they're successes or errors.| Constructor and Description |
|---|
RestProxyResponseErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleError(org.springframework.http.client.ClientHttpResponse response) |
boolean |
hasError(org.springframework.http.client.ClientHttpResponse response) |
public void handleError(org.springframework.http.client.ClientHttpResponse response)
throws IOException
handleError in interface org.springframework.web.client.ResponseErrorHandlerIOExceptionpublic boolean hasError(org.springframework.http.client.ClientHttpResponse response)
throws IOException
hasError in interface org.springframework.web.client.ResponseErrorHandlerIOExceptionCopyright © 2015. All rights reserved.