You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
691 B
38 lines
691 B
package middleware;
|
|
|
|
/**
|
|
* HTTP响应对象
|
|
*/
|
|
public class HttpResponse {
|
|
private int statusCode;
|
|
private String headers;
|
|
private String body;
|
|
|
|
public HttpResponse() {
|
|
this.statusCode = 200;
|
|
}
|
|
|
|
public int getStatusCode() {
|
|
return statusCode;
|
|
}
|
|
|
|
public void setStatusCode(int statusCode) {
|
|
this.statusCode = statusCode;
|
|
}
|
|
|
|
public void setHeaders(String headers) {
|
|
this.headers = headers;
|
|
}
|
|
|
|
public String getHeaders() {
|
|
return headers;
|
|
}
|
|
|
|
public void setBody(String body) {
|
|
this.body = body;
|
|
}
|
|
|
|
public String getBody() {
|
|
return body;
|
|
}
|
|
} |