
net.lightbody.bmp.core.har.HarResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of browsermob-proxy Show documentation
Show all versions of browsermob-proxy Show documentation
A programmatic HTTP/S designed for performance and functional testing
package net.lightbody.bmp.core.har;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class HarResponse {
private int status;
private String statusText;
private String httpVersion;
private List cookies = new CopyOnWriteArrayList();
private List headers = new CopyOnWriteArrayList();
private HarContent content = new HarContent();
private String redirectURL = "";
private long headersSize;
private long bodySize;
public HarResponse() {
}
public HarResponse(int status, String statusText, String httpVersion) {
this.status = status;
this.statusText = statusText;
this.httpVersion = httpVersion;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public String getStatusText() {
return statusText;
}
public void setStatusText(String statusText) {
this.statusText = statusText;
}
public String getHttpVersion() {
return httpVersion;
}
public void setHttpVersion(String httpVersion) {
this.httpVersion = httpVersion;
}
public List getCookies() {
return cookies;
}
public void setCookies(List cookies) {
this.cookies = cookies;
}
public List getHeaders() {
return headers;
}
public void setHeaders(List headers) {
this.headers = headers;
}
public HarContent getContent() {
return content;
}
public void setContent(HarContent content) {
this.content = content;
}
public String getRedirectURL() {
return redirectURL;
}
public void setRedirectURL(String redirectURL) {
this.redirectURL = redirectURL;
}
public long getHeadersSize() {
return headersSize;
}
public void setHeadersSize(long headersSize) {
this.headersSize = headersSize;
}
public long getBodySize() {
return bodySize;
}
public void setBodySize(long bodySize) {
this.bodySize = bodySize;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy