T - the type parameterpublic class WechatResponseEntity<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
private T |
body
The Body.
|
private int |
httpStatus
The Http status.
|
| Constructor and Description |
|---|
WechatResponseEntity() |
| Modifier and Type | Method and Description |
|---|---|
void |
convert(org.springframework.http.ResponseEntity<T> responseEntity)
Convert
ResponseEntity to WechatResponseEntity. |
boolean |
is1xxInformational()
Is 1 xx informational boolean.
|
boolean |
is2xxSuccessful()
Is 2xx successful boolean.
|
boolean |
is3xxRedirection()
Is 3xx redirection boolean.
|
boolean |
is4xxClientError()
Is 4xx client error boolean.
|
boolean |
is5xxServerError()
Is 5xx server error boolean.
|
private int httpStatus
private T body
public void convert(org.springframework.http.ResponseEntity<T> responseEntity)
ResponseEntity to WechatResponseEntity.responseEntity - the response entitypublic boolean is1xxInformational()
public boolean is2xxSuccessful()
public boolean is3xxRedirection()
public boolean is4xxClientError()
public boolean is5xxServerError()
Copyright © 2021. All rights reserved.