Package Torello.Browser
Class Network.requestWillBeSent
- java.lang.Object
-
- Torello.Java.Additional.BaseType
-
- Torello.Browser.BrowserEvent
-
- Torello.Browser.Network.requestWillBeSent
-
- Enclosing class:
- Network
public static class Network.requestWillBeSent extends BrowserEvent
Fired when page is about to send HTTP request.
Hi-Lited Source-Code:- View Here: Torello/Browser/Network.java
- Open New Browser-Tab: Torello/Browser/Network.java
-
-
Field Summary
Serializable ID Modifier and Type Field protected static long
serialVersionUID
For Object Serialization.Event Properties Modifier and Type Field String
documentURL
URL of the document this request is loaded for.String
frameId
Frame identifier.Boolean
hasUserGesture
Whether the request is initiated by a user gesture.Network.Initiator
initiator
Request initiator.String
loaderId
Loader identifier.boolean
redirectHasExtraInfo
In the case that redirectResponse is populated, this flag indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted for the request which was just redirected.Network.Response
redirectResponse
Redirect response data.Network.Request
request
Request data.String
requestId
Request identifier.Number
timestamp
Timestamp.String
type
Type of this resource.Number
wallTime
Timestamp.-
Fields inherited from class Torello.Browser.BrowserEvent
domain, name, numFields
-
-
Constructor Summary
Constructors Constructor Description requestWillBeSent(String requestId, String loaderId, String documentURL, Network.Request request, Number timestamp, Number wallTime, Network.Initiator initiator, boolean redirectHasExtraInfo, Network.Response redirectResponse, String type, String frameId, Boolean hasUserGesture)
ConstructorrequestWillBeSent(JsonObject jo)
JSON Object Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean[]
optionals()
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null.
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
For Object Serialization. java.io.Serializable- See Also:
- Constant Field Values
-
requestId
public final java.lang.String requestId
Request identifier.
-
loaderId
public final java.lang.String loaderId
Loader identifier. Empty string if the request is fetched from worker.
-
documentURL
public final java.lang.String documentURL
URL of the document this request is loaded for.
-
request
public final Network.Request request
Request data.
-
timestamp
public final java.lang.Number timestamp
Timestamp.
-
wallTime
public final java.lang.Number wallTime
Timestamp.
-
initiator
public final Network.Initiator initiator
Request initiator.
-
redirectHasExtraInfo
public final boolean redirectHasExtraInfo
In the case that redirectResponse is populated, this flag indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted for the request which was just redirected.
EXPERIMENTAL
-
redirectResponse
public final Network.Response redirectResponse
Redirect response data.
OPTIONAL
-
type
public final java.lang.String type
Type of this resource.
OPTIONAL
-
frameId
public final java.lang.String frameId
Frame identifier.
OPTIONAL
-
hasUserGesture
public final java.lang.Boolean hasUserGesture
Whether the request is initiated by a user gesture. Defaults to false.
OPTIONAL
-
-
Constructor Detail
-
requestWillBeSent
public requestWillBeSent(java.lang.String requestId, java.lang.String loaderId, java.lang.String documentURL, Network.Request request, java.lang.Number timestamp, java.lang.Number wallTime, Network.Initiator initiator, boolean redirectHasExtraInfo, Network.Response redirectResponse, java.lang.String type, java.lang.String frameId, java.lang.Boolean hasUserGesture)
Constructor- Parameters:
requestId
- Request identifier.loaderId
- Loader identifier. Empty string if the request is fetched from worker.documentURL
- URL of the document this request is loaded for.request
- Request data.timestamp
- Timestamp.wallTime
- Timestamp.initiator
- Request initiator.redirectHasExtraInfo
- In the case that redirectResponse is populated, this flag indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted for the request which was just redirected.
EXPERIMENTALredirectResponse
- Redirect response data.
OPTIONALtype
- Type of this resource.
OPTIONALframeId
- Frame identifier.
OPTIONALhasUserGesture
- Whether the request is initiated by a user gesture. Defaults to false.
OPTIONAL
-
requestWillBeSent
public requestWillBeSent(JsonObject jo)
JSON Object Constructor- Parameters:
jo
- A Json-Object having data about an instance of'requestWillBeSent'
.
-
-
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...
-
-