|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.foxinmy.weixin4j.http.weixin.WeixinResponse
public class WeixinResponse
调用微信接口响应
| Constructor Summary | |
|---|---|
WeixinResponse(HttpResponse response)
|
|
| Method Summary | ||
|---|---|---|
void |
close()
释放资源 |
|
com.alibaba.fastjson.JSONObject |
getAsJson()
|
|
|
getAsObject(com.alibaba.fastjson.TypeReference<T> typeReference)
|
|
ApiResult |
getAsResult()
|
|
String |
getAsString()
|
|
XmlResult |
getAsXml()
|
|
InputStream |
getBody()
响应内容 |
|
byte[] |
getContent()
响应内容 |
|
HttpHeaders |
getHeaders()
HTTP报头 |
|
HttpVersion |
getProtocol()
HTTP协议 |
|
HttpStatus |
getStatus()
响应状态 |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WeixinResponse(HttpResponse response)
| Method Detail |
|---|
public String getAsString()
public ApiResult getAsResult()
public com.alibaba.fastjson.JSONObject getAsJson()
public XmlResult getAsXml()
public <T> T getAsObject(com.alibaba.fastjson.TypeReference<T> typeReference)
public HttpHeaders getHeaders()
HttpMessage
getHeaders in interface HttpMessagepublic HttpStatus getStatus()
HttpResponse
getStatus in interface HttpResponsepublic byte[] getContent()
HttpResponse
getContent in interface HttpResponsepublic InputStream getBody()
HttpResponse
getBody in interface HttpResponsepublic HttpVersion getProtocol()
HttpResponse
getProtocol in interface HttpResponsepublic void close()
HttpResponse
close in interface HttpResponse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||