public class HarEntry extends Object
Modifier and Type | Method and Description |
---|---|
HarCache |
getCache() |
String |
getComment() |
String |
getConnection() |
String |
getPageref() |
HarRequest |
getRequest() |
HarResponse |
getResponse() |
String |
getServerIPAddress() |
Date |
getStartedDateTime() |
long |
getTime()
Retrieves the time for this HarEntry in milliseconds.
|
long |
getTime(TimeUnit timeUnit)
Retrieve the time for this HarEntry in the specified timeUnit.
|
HarTimings |
getTimings() |
void |
setCache(HarCache cache) |
void |
setComment(String comment) |
void |
setConnection(String connection) |
void |
setPageref(String pageref) |
void |
setRequest(HarRequest request) |
void |
setResponse(HarResponse response) |
void |
setServerIPAddress(String serverIPAddress) |
void |
setStartedDateTime(Date startedDateTime) |
void |
setTimings(HarTimings timings) |
public HarEntry()
public HarEntry(String pageref)
public String getPageref()
public void setPageref(String pageref)
public Date getStartedDateTime()
public void setStartedDateTime(Date startedDateTime)
public long getTime()
getTime(java.util.concurrent.TimeUnit)
.
Rather than storing the time directly, calculate the time from the HarTimings as required in the HAR spec.
From https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/HAR/Overview.html,
section 4.2.16 timings
:
Following must be true in case there are no -1 values (entry is an object in log.entries) : entry.time == entry.timings.blocked + entry.timings.dns + entry.timings.connect + entry.timings.send + entry.timings.wait + entry.timings.receive;
public long getTime(TimeUnit timeUnit)
getTime()
for details.timeUnit
- units of time to returnpublic HarRequest getRequest()
public void setRequest(HarRequest request)
public HarResponse getResponse()
public void setResponse(HarResponse response)
public HarCache getCache()
public void setCache(HarCache cache)
public HarTimings getTimings()
public void setTimings(HarTimings timings)
public String getServerIPAddress()
public void setServerIPAddress(String serverIPAddress)
public String getComment()
public void setComment(String comment)
public String getConnection()
public void setConnection(String connection)
Copyright © 2017. All rights reserved.