Package Torello.Browser
Class Network.ResourceTiming
- java.lang.Object
-
- Torello.Java.JSON.BaseType
-
- Torello.Browser.Network.ResourceTiming
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Network
public static class Network.ResourceTiming extends BaseType implements java.io.Serializable
Timing information for the request.- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Torello/Browser/Network.java
- Open New Browser-Tab: Torello/Browser/Network.java
File Size: 12,379 Bytes Line Count: 269 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field protected static long
serialVersionUID
For Object Serialization.Type Properties Modifier and Type Field Number
connectEnd
Connected to the remote host.Number
connectStart
Started connecting to the remote host.Number
dnsEnd
Finished DNS address resolve.Number
dnsStart
Started DNS address resolve.Number
proxyEnd
Finished resolving proxy.Number
proxyStart
Started resolving proxy.Number
pushEnd
Time the server finished pushing request.Number
pushStart
Time the server started pushing request.Number
receiveHeadersEnd
Finished receiving response headers.Number
requestTime
Timing's requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime.Number
sendEnd
Finished sending request.Number
sendStart
Started sending request.Number
sslEnd
Finished SSL handshake.Number
sslStart
Started SSL handshake.Number
workerFetchStart
Started fetch event.Number
workerReady
Finished Starting ServiceWorker.Number
workerRespondWithSettled
Settled fetch event respondWith promise.Number
workerStart
Started running ServiceWorker.
-
Constructor Summary
Constructors Constructor Description ResourceTiming(Number requestTime, Number proxyStart, Number proxyEnd, Number dnsStart, Number dnsEnd, Number connectStart, Number connectEnd, Number sslStart, Number sslEnd, Number workerStart, Number workerReady, Number workerFetchStart, Number workerRespondWithSettled, Number sendStart, Number sendEnd, Number pushStart, Number pushEnd, Number receiveHeadersEnd)
ConstructorResourceTiming(JsonObject jo)
JSON Object Constructor
-
Method Summary
Generate Array that Indicates which Parameter are Optional Modifier and Type Method boolean[]
optionals()
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null.Methods: class java.lang.Object Modifier and Type Method boolean
equals(Object other)
Checks whether'this'
equals an input Java-Object
int
hashCode()
Generates a Hash-Code for'this'
instance
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
For Object Serialization. java.io.Serializable- See Also:
- Constant Field Values
-
requestTime
public final java.lang.Number requestTime
Timing's requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime.
-
proxyStart
public final java.lang.Number proxyStart
Started resolving proxy.
-
proxyEnd
public final java.lang.Number proxyEnd
Finished resolving proxy.
-
dnsStart
public final java.lang.Number dnsStart
Started DNS address resolve.
-
dnsEnd
public final java.lang.Number dnsEnd
Finished DNS address resolve.
-
connectStart
public final java.lang.Number connectStart
Started connecting to the remote host.
-
connectEnd
public final java.lang.Number connectEnd
Connected to the remote host.
-
sslStart
public final java.lang.Number sslStart
Started SSL handshake.
-
sslEnd
public final java.lang.Number sslEnd
Finished SSL handshake.
-
workerStart
public final java.lang.Number workerStart
Started running ServiceWorker.
EXPERIMENTAL
-
workerReady
public final java.lang.Number workerReady
Finished Starting ServiceWorker.
EXPERIMENTAL
-
workerFetchStart
public final java.lang.Number workerFetchStart
Started fetch event.
EXPERIMENTAL
-
workerRespondWithSettled
public final java.lang.Number workerRespondWithSettled
Settled fetch event respondWith promise.
EXPERIMENTAL
-
sendStart
public final java.lang.Number sendStart
Started sending request.
-
sendEnd
public final java.lang.Number sendEnd
Finished sending request.
-
pushStart
public final java.lang.Number pushStart
Time the server started pushing request.
EXPERIMENTAL
-
pushEnd
public final java.lang.Number pushEnd
Time the server finished pushing request.
EXPERIMENTAL
-
receiveHeadersEnd
public final java.lang.Number receiveHeadersEnd
Finished receiving response headers.
-
-
Constructor Detail
-
ResourceTiming
public ResourceTiming(java.lang.Number requestTime, java.lang.Number proxyStart, java.lang.Number proxyEnd, java.lang.Number dnsStart, java.lang.Number dnsEnd, java.lang.Number connectStart, java.lang.Number connectEnd, java.lang.Number sslStart, java.lang.Number sslEnd, java.lang.Number workerStart, java.lang.Number workerReady, java.lang.Number workerFetchStart, java.lang.Number workerRespondWithSettled, java.lang.Number sendStart, java.lang.Number sendEnd, java.lang.Number pushStart, java.lang.Number pushEnd, java.lang.Number receiveHeadersEnd)
Constructor- Parameters:
requestTime
- Timing's requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime.proxyStart
- Started resolving proxy.proxyEnd
- Finished resolving proxy.dnsStart
- Started DNS address resolve.dnsEnd
- Finished DNS address resolve.connectStart
- Started connecting to the remote host.connectEnd
- Connected to the remote host.sslStart
- Started SSL handshake.sslEnd
- Finished SSL handshake.workerStart
- Started running ServiceWorker.
EXPERIMENTALworkerReady
- Finished Starting ServiceWorker.
EXPERIMENTALworkerFetchStart
- Started fetch event.
EXPERIMENTALworkerRespondWithSettled
- Settled fetch event respondWith promise.
EXPERIMENTALsendStart
- Started sending request.sendEnd
- Finished sending request.pushStart
- Time the server started pushing request.
EXPERIMENTALpushEnd
- Time the server finished pushing request.
EXPERIMENTALreceiveHeadersEnd
- Finished receiving response headers.
-
ResourceTiming
public ResourceTiming(JsonObject jo)
JSON Object Constructor- Parameters:
jo
- A Json-Object having data about an instance of'ResourceTiming'
.
-
-
Method Detail
-
optionals
public boolean[] optionals()
Description copied from class:BaseType
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null. When binding aJsonObject
to a Java-Object, if some of the expected fields for the Java-Object map to Properties which might be left-out or omitted, then that may be indicated by setting that fields array positionTRUE
.
NOTE: This array should have a length equal to the number of fields contained by the Java Object. The first boolean in the array should specify whether the first Object Field may by absent. The second boolean should specify whether the second Object Field is optional in the JSON - and so on and so forth...- Specified by:
optionals
in classBaseType
- Returns:
- A
boolean[]
array whose length is precisely equal to the number of fields in the Java Object. - Code:
- Exact Method Body:
return new boolean[] { false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, };
-
equals
public boolean equals(java.lang.Object other)
Checks whether'this'
equals an input Java-Object
- Overrides:
equals
in classjava.lang.Object
- Code:
- Exact Method Body:
if (other == null) return false; if (other.getClass() != this.getClass()) return false; ResourceTiming o = (ResourceTiming) other; return Objects.equals(this.requestTime, o.requestTime) && Objects.equals(this.proxyStart, o.proxyStart) && Objects.equals(this.proxyEnd, o.proxyEnd) && Objects.equals(this.dnsStart, o.dnsStart) && Objects.equals(this.dnsEnd, o.dnsEnd) && Objects.equals(this.connectStart, o.connectStart) && Objects.equals(this.connectEnd, o.connectEnd) && Objects.equals(this.sslStart, o.sslStart) && Objects.equals(this.sslEnd, o.sslEnd) && Objects.equals(this.workerStart, o.workerStart) && Objects.equals(this.workerReady, o.workerReady) && Objects.equals(this.workerFetchStart, o.workerFetchStart) && Objects.equals(this.workerRespondWithSettled, o.workerRespondWithSettled) && Objects.equals(this.sendStart, o.sendStart) && Objects.equals(this.sendEnd, o.sendEnd) && Objects.equals(this.pushStart, o.pushStart) && Objects.equals(this.pushEnd, o.pushEnd) && Objects.equals(this.receiveHeadersEnd, o.receiveHeadersEnd);
-
hashCode
public int hashCode()
Generates a Hash-Code for'this'
instance- Overrides:
hashCode
in classjava.lang.Object
- Code:
- Exact Method Body:
return Objects.hashCode(this.requestTime) + Objects.hashCode(this.proxyStart) + Objects.hashCode(this.proxyEnd) + Objects.hashCode(this.dnsStart) + Objects.hashCode(this.dnsEnd) + Objects.hashCode(this.connectStart) + Objects.hashCode(this.connectEnd) + Objects.hashCode(this.sslStart) + Objects.hashCode(this.sslEnd) + Objects.hashCode(this.workerStart) + Objects.hashCode(this.workerReady) + Objects.hashCode(this.workerFetchStart) + Objects.hashCode(this.workerRespondWithSettled) + Objects.hashCode(this.sendStart) + Objects.hashCode(this.sendEnd) + Objects.hashCode(this.pushStart) + Objects.hashCode(this.pushEnd) + Objects.hashCode(this.receiveHeadersEnd);
-
-