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