
net.lightbody.bmp.core.har.HarRequest 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 HarRequest {
private String method;
private String url;
private String httpVersion;
private List cookies = new CopyOnWriteArrayList();
private List headers = new CopyOnWriteArrayList();
private List queryString = new CopyOnWriteArrayList();
private HarPostData postData;
private long headersSize; // Odd grammar in spec
private long bodySize;
public HarRequest() {
}
public HarRequest(String method, String url, String httpVersion) {
this.method = method;
this.url = url;
this.httpVersion = httpVersion;
}
public String getMethod() {
return method;
}
public void setMethod(String method) {
this.method = method;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
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 List getQueryString() {
return queryString;
}
public void setQueryString(List queryString) {
this.queryString = queryString;
}
public HarPostData getPostData() {
return postData;
}
public void setPostData(HarPostData postData) {
this.postData = postData;
}
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