Record Class BrowserSignal
java.lang.Object
java.lang.Record
com.shaft.capture.collector.BrowserSignal
- Record Components:
kind- normalized low-level signal kindtimestamp- signal timebrowsingContextId- BiDi or fallback browsing-context identifierpage- safe page fields captured with the signaltarget- immediate element evidencedata- transient action data awaiting privacy classification
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebrowsingContextIdrecord component.data()Returns the value of thedatarecord component.booleandataBoolean(String key) Reads a boolean data field.intReads an integer data field.dataString(String key) Reads a string data field.dataStrings(String key) Reads a list data field as strings.final booleanIndicates whether some other object is "equal to" this one.static BrowserSignalParses a browser-side JSON signal.static BrowserSignalCreates a recorder-generated signal.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.page()Returns the value of thepagerecord component.target()Returns the value of thetargetrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BrowserSignal
-
-
Method Details
-
fromJson
Parses a browser-side JSON signal.- Parameters:
json- signal JSONbrowsingContextId- source browsing context- Returns:
- parsed signal
-
generated
-
dataString
-
dataInt
Reads an integer data field.- Parameters:
key- field namefallback- fallback value- Returns:
- field value
-
dataBoolean
Reads a boolean data field.- Parameters:
key- field name- Returns:
- field value
-
dataStrings
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
kind
-
timestamp
-
browsingContextId
Returns the value of thebrowsingContextIdrecord component.- Returns:
- the value of the
browsingContextIdrecord component
-
page
-
target
-
data
-