This repository was archived by the owner on Sep 6, 2025. It is now read-only.
  
  
  
  
    
    
    
      
    
  
  
    
File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed 
browsermob-core/src/main/java/net/lightbody/bmp/core/har Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 33import  com .fasterxml .jackson .annotation .JsonAutoDetect ;
44import  com .fasterxml .jackson .annotation .JsonFormat ;
55import  com .fasterxml .jackson .annotation .JsonInclude ;
6+ import  com .fasterxml .jackson .annotation .JsonProperty ;
67
78import  java .util .Date ;
89import  java .util .concurrent .TimeUnit ;
@@ -17,6 +18,8 @@ public class HarEntry {
1718    private  volatile  HarCache  cache  = new  HarCache ();
1819    private  volatile  HarTimings  timings  = new  HarTimings ();
1920    private  volatile  String  serverIPAddress ;
21+     @ JsonProperty ("time" )
22+     private  volatile  long  time ;
2023    private  volatile  String  connection ;
2124    private  volatile  String  comment  = "" ;
2225
@@ -157,4 +160,10 @@ public String getConnection() {
157160    public  void  setConnection (String  connection ) {
158161        this .connection  = connection ;
159162    }
163+ 
164+     public  HarEntry  setTime (long  time ) {
165+         this .time  = time ;
166+         return  this ;
167+     }
168+ 
160169}
Original file line number Diff line number Diff line change 11package  net .lightbody .bmp .core .har ;
22
3+ import  com .fasterxml .jackson .annotation .JsonProperty ;
4+ 
35import  java .util .concurrent .TimeUnit ;
46
57public  class  HarTimings  {
68    // optional values are initialized to -1, which indicates they do not apply to the current request, according to the HAR spec 
9+     @ JsonProperty ("blocked" )
710    private  volatile  long  blockedNanos  = -1 ;
11+     @ JsonProperty ("dns" )
812    private  volatile  long  dnsNanos  = -1 ;
13+     @ JsonProperty ("connect" )
914    private  volatile  long  connectNanos  = -1 ;
15+     @ JsonProperty ("send" )
1016    private  volatile  long  sendNanos ;
17+     @ JsonProperty ("wait" )
1118    private  volatile  long  waitNanos ;
19+     @ JsonProperty ("receive" )
1220    private  volatile  long  receiveNanos ;
21+     @ JsonProperty ("ssl" )
1322    private  volatile  long  sslNanos  = -1 ;
1423    private  volatile  String  comment  = "" ;
1524
@@ -49,7 +58,7 @@ public long getDns(TimeUnit timeUnit) {
4958    public  void  setDns (long  dns , TimeUnit  timeUnit ) {
5059        if  (dns  == -1 ) {
5160            this .dnsNanos  = -1 ;
52-         } else {
61+         } else   {
5362            this .dnsNanos  = TimeUnit .NANOSECONDS .convert (dns , timeUnit );
5463        }
5564    }
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments