chenjiahe
5 天以前 826b66207dafbce24f441cb83fed1b241a6fba27
提交 | 用户 | age
826b66 1 package com.hx.util;
C 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 }