
net.lightbody.bmp.core.har.HarEntry 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 net.lightbody.bmp.core.json.ISO8601DateFormatter;
import org.codehaus.jackson.annotate.JsonAutoDetect;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import java.util.Date;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonAutoDetect
public class HarEntry {
private String pageref;
private Date startedDateTime;
private long time;
private HarRequest request;
private HarResponse response;
private HarCache cache = new HarCache();
private HarTimings timings;
private String serverIPAddress;
public HarEntry() {
}
public HarEntry(String pageref) {
this.pageref = pageref;
this.startedDateTime = new Date();
}
public String getPageref() {
return pageref;
}
public void setPageref(String pageref) {
this.pageref = pageref;
}
@JsonSerialize(using = ISO8601DateFormatter.class)
public Date getStartedDateTime() {
return startedDateTime;
}
public void setStartedDateTime(Date startedDateTime) {
this.startedDateTime = startedDateTime;
}
public long getTime() {
return time;
}
public void setTime(long time) {
this.time = time;
}
public HarRequest getRequest() {
return request;
}
public void setRequest(HarRequest request) {
this.request = request;
}
public HarResponse getResponse() {
return response;
}
public void setResponse(HarResponse response) {
this.response = response;
}
public HarCache getCache() {
return cache;
}
public void setCache(HarCache cache) {
this.cache = cache;
}
public HarTimings getTimings() {
return timings;
}
public void setTimings(HarTimings timings) {
this.timings = timings;
}
public String getServerIPAddress() {
return serverIPAddress;
}
public void setServerIPAddress(String serverIPAddress) {
this.serverIPAddress = serverIPAddress;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy