Class OkHttpResponse2
- java.lang.Object
-
- com.foxinmy.weixin4j.http.AbstractHttpResponse
-
- com.foxinmy.weixin4j.http.support.okhttp.OkHttpResponse2
-
- All Implemented Interfaces:
HttpMessage
,HttpResponse
public class OkHttpResponse2 extends AbstractHttpResponse
OkHttp Response:Requires OkHttp 2.x- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
-
-
Field Summary
-
Fields inherited from class com.foxinmy.weixin4j.http.AbstractHttpResponse
KEEP_ALIVE
-
-
Constructor Summary
Constructors Constructor Description OkHttpResponse2(com.squareup.okhttp.Response response, byte[] content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
释放资源HttpHeaders
getHeaders()
HTTP报头HttpVersion
getProtocol()
HTTP协议HttpStatus
getStatus()
响应状态-
Methods inherited from class com.foxinmy.weixin4j.http.AbstractHttpResponse
getBody, getContent
-
-
-
-
Method Detail
-
getHeaders
public HttpHeaders getHeaders()
Description copied from interface:HttpMessage
HTTP报头- Returns:
-
getProtocol
public HttpVersion getProtocol()
Description copied from interface:HttpResponse
HTTP协议- Returns:
-
getStatus
public HttpStatus getStatus()
Description copied from interface:HttpResponse
响应状态- Returns:
-
close
public void close()
Description copied from interface:HttpResponse
释放资源
-
-