MCPcopy Create free account
hub / github.com/SeanDragon/protools / HttpReceive

Class HttpReceive

http/src/main/java/pro/tools/http/pojo/HttpReceive.java:10–125  ·  view source on GitHub ↗

@author SeanDragon Create By 2017-07-20 13:50

Source from the content-addressed store, hash-verified

8 * Create By 2017-07-20 13:50
9 */
10public class HttpReceive {
11 /**
12 * 错误信息
13 */
14 private String errMsg;
15 /**
16 * 异常本体
17 */
18 private Throwable throwable;
19 /**
20 * 状态码
21 */
22 private Integer statusCode;
23 /**
24 * 状态文本
25 */
26 private String statusText;
27 /**
28 * 响应内容
29 */
30 private String responseBody;
31 /**
32 * 响应的header列表
33 */
34 private Map<String, String> responseHeader;
35
36 /**
37 * 是否有异常
38 */
39 private Boolean haveError;
40 /**
41 * 是否执行完成
42 */
43 private Boolean isDone;
44
45 public HttpReceive() {
46 init();
47 }
48
49 private void init() {
50 haveError = false;
51 isDone = false;
52 }
53
54 public Boolean getHaveError() {
55 return haveError;
56 }
57
58 public HttpReceive setHaveError(Boolean haveError) {
59 this.haveError = haveError;
60 return this;
61 }
62
63 public String getErrMsg() {
64 return errMsg;
65 }
66
67 public HttpReceive setErrMsg(String errMsg) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected