ChenJiaHe
2021-05-06 8d87cf8d33815bdd6e7d0c968d105a09c5f5eac5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package com.hx.util;
 
public class HttpResponse {
    private int code;
    private String content;
 
    public HttpResponse(int status, String content) {
        this.code = status;
        this.content = content;
    }
 
    public int getCode() {
        return code;
    }
 
    public void setCode(int code) {
        this.code = code;
    }
 
    public String getContent() {
        return content;
    }
 
    public void setContent(String content) {
        this.content = content;
    }
 
    public String toString(){
        return new StringBuilder("[ code = ").append(code)
                .append(" , content = ").append(content).append(" ]").toString();
    }
}