com.foxinmy.weixin4j.http.support.okhttp
Class OkHttpResponse2

java.lang.Object
  extended by com.foxinmy.weixin4j.http.AbstractHttpResponse
      extended by 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)

Constructor Summary
OkHttpResponse2(com.squareup.okhttp.Response response, byte[] content)
           
 
Method Summary
 void close()
          释放资源
 HttpHeaders getHeaders()
          HTTP报头
 HttpVersion getProtocol()
          HTTP协议
 HttpStatus getStatus()
          响应状态
 
Methods inherited from class com.foxinmy.weixin4j.http.AbstractHttpResponse
getBody, getContent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OkHttpResponse2

public OkHttpResponse2(com.squareup.okhttp.Response response,
                       byte[] content)
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
释放资源



Copyright © 2014–2017. All rights reserved.