Package com.foxinmy.weixin4j.http
Class AbstractHttpResponse
- java.lang.Object
-
- 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)
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
KEEP_ALIVE
-
Constructor Summary
Constructors Constructor Description AbstractHttpResponse(byte[] content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
getBody()
响应内容byte[]
getContent()
响应内容-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.foxinmy.weixin4j.http.HttpMessage
getHeaders
-
Methods inherited from interface com.foxinmy.weixin4j.http.HttpResponse
close, getProtocol, getStatus
-
-
-
-
Field Detail
-
KEEP_ALIVE
protected static final String KEEP_ALIVE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getContent
public byte[] getContent()
Description copied from interface:HttpResponse
响应内容- Specified by:
getContent
in interfaceHttpResponse
- Returns:
-
getBody
public InputStream getBody()
Description copied from interface:HttpResponse
响应内容- Specified by:
getBody
in interfaceHttpResponse
- Returns:
-
-