com.foxinmy.weixin4j.http
Class AbstractHttpResponse

java.lang.Object
  extended by com.foxinmy.weixin4j.http.AbstractHttpResponse
All Implemented Interfaces:
HttpMessage, HttpResponse
Direct Known Subclasses:
HttpComponent3Response, HttpComponent4_1Response, HttpComponent4_2Response, Netty4HttpResponse, OkHttpResponse2, OkHttpResponse3, SimpleHttpResponse

public abstract class AbstractHttpResponse
extends Object
implements HttpResponse

Since:
JDK 1.6
Author:
jinyu(foxinmy@gmail.com)
See Also:

Constructor Summary
AbstractHttpResponse(byte[] content)
           
 
Method Summary
 InputStream getBody()
          响应内容
 byte[] getContent()
          响应内容
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.foxinmy.weixin4j.http.HttpResponse
close, getProtocol, getStatus
 
Methods inherited from interface com.foxinmy.weixin4j.http.HttpMessage
getHeaders
 

Constructor Detail

AbstractHttpResponse

public AbstractHttpResponse(byte[] content)
Method Detail

getContent

public byte[] getContent()
Description copied from interface: HttpResponse
响应内容

Specified by:
getContent in interface HttpResponse
Returns:

getBody

public InputStream getBody()
Description copied from interface: HttpResponse
响应内容

Specified by:
getBody in interface HttpResponse
Returns:


Copyright © 2014–2017. All rights reserved.