public class WxResponseErrorHandler extends Object implements org.springframework.web.client.ResponseErrorHandler
| Modifier and Type | Field and Description |
|---|---|
static int |
WX_API_ERROR_CODE_END |
| Constructor and Description |
|---|
WxResponseErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected Charset |
getCharset(org.springframework.http.client.ClientHttpResponse response) |
protected org.springframework.http.HttpStatus |
getHttpStatusCode(org.springframework.http.client.ClientHttpResponse response) |
protected byte[] |
getResponseBody(org.springframework.http.client.ClientHttpResponse response) |
void |
handleError(org.springframework.http.client.ClientHttpResponse response) |
protected boolean |
hasApiResultError(org.springframework.http.client.ClientHttpResponse response) |
boolean |
hasError(org.springframework.http.client.ClientHttpResponse response) |
protected boolean |
hasError(org.springframework.http.HttpStatus statusCode) |
public static final int WX_API_ERROR_CODE_END
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 boolean hasError(org.springframework.http.HttpStatus statusCode)
protected byte[] getResponseBody(org.springframework.http.client.ClientHttpResponse response)
protected org.springframework.http.HttpStatus getHttpStatusCode(org.springframework.http.client.ClientHttpResponse response)
throws IOException
IOExceptionprotected Charset getCharset(org.springframework.http.client.ClientHttpResponse response)
protected boolean hasApiResultError(org.springframework.http.client.ClientHttpResponse response)
throws IOException
IOExceptionCopyright © 2018 Guangshan Technology, Inc.. All rights reserved.