org.nofdev.http.HttpMessageWithHeader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http-client-util Show documentation
Show all versions of http-client-util Show documentation
The http connect util based on apache httpclient
package org.nofdev.http;
import java.util.Map;
/**
* Created by Qiang on 11/5/15.
*/
public class HttpMessageWithHeader extends HttpMessageSimple {
private Map headers;
public HttpMessageWithHeader() {
}
public HttpMessageWithHeader(int statusCode, String contentType, String body, Map headers) {
super(statusCode,contentType,body);
this.headers = headers;
}
public Map getHeaders() {
return headers;
}
public void setHeaders(Map headers) {
this.headers = headers;
}
}