public class LoggingResponseErrorHandler extends Object implements org.springframework.web.client.ResponseErrorHandler
| Constructor and Description |
|---|
LoggingResponseErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getBodyAsString(org.springframework.http.client.ClientHttpResponse response) |
protected String |
getCharset(org.springframework.http.client.ClientHttpResponse response) |
protected byte[] |
getResponseBody(org.springframework.http.client.ClientHttpResponse response) |
void |
handleError(org.springframework.http.client.ClientHttpResponse response) |
boolean |
hasError(org.springframework.http.client.ClientHttpResponse response) |
public boolean hasError(org.springframework.http.client.ClientHttpResponse response)
throws IOException
hasError in interface org.springframework.web.client.ResponseErrorHandlerIOExceptionpublic void handleError(org.springframework.http.client.ClientHttpResponse response)
throws IOException
handleError in interface org.springframework.web.client.ResponseErrorHandlerIOExceptionprotected String getBodyAsString(org.springframework.http.client.ClientHttpResponse response) throws IOException
IOExceptionprotected byte[] getResponseBody(org.springframework.http.client.ClientHttpResponse response)
@NonNull protected String getCharset(org.springframework.http.client.ClientHttpResponse response)
Copyright © 2019. All rights reserved.