1 package com.foxinmy.weixin4j.http;
2
3 import java.io.InputStream;
4
5 /**
6 * HTTP 响应
7 *
8 * @className HttpResponse
9 * @author jinyu(foxinmy@gmail.com)
10 * @date 2015年5月30日
11 * @since JDK 1.6
12 * @see
13 */
14 public interface HttpResponse extends HttpMessage {
15 /**
16 * HTTP协议
17 *
18 * @return
19 */
20 HttpVersion getProtocol();
21
22 /**
23 * 响应状态
24 *
25 * @return
26 */
27 HttpStatus getStatus();
28 /**
29 * 响应内容
30 *
31 * @return
32 */
33 InputStream getBody();
34
35 /**
36 * 响应内容
37 *
38 * @return
39 */
40 byte[] getContent();
41
42 /**
43 * 释放资源
44 */
45 void close();
46 }