Record Class NetworkTransaction
java.lang.Object
java.lang.Record
com.shaft.capture.runtime.NetworkTransaction
- Record Components:
transactionId- unique transaction identifiermethod- HTTP method (GET, POST, etc.)url- sanitized URL without sensitive query parameters or headersstatusCode- HTTP response status coderesourceKind- resource type (document, xhr, fetch, etc.)timingMillis- request/response timing in millisecondsbodyRefMetadata- safe body reference metadata (not the actual body)- related UI events in the capture sequence
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebodyRefMetadatarecord component.Returns the value of thecorrelatedUiSequencerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.Returns the value of theresourceKindrecord component.intReturns the value of thestatusCoderecord component.longReturns the value of thetimingMillisrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransactionIdrecord component.url()Returns the value of theurlrecord component.
-
Constructor Details
-
NetworkTransaction
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
transactionId
Returns the value of thetransactionIdrecord component.- Returns:
- the value of the
transactionIdrecord component
-
method
-
url
-
statusCode
public int statusCode()Returns the value of thestatusCoderecord component.- Returns:
- the value of the
statusCoderecord component
-
resourceKind
Returns the value of theresourceKindrecord component.- Returns:
- the value of the
resourceKindrecord component
-
timingMillis
public long timingMillis()Returns the value of thetimingMillisrecord component.- Returns:
- the value of the
timingMillisrecord component
-
bodyRefMetadata
Returns the value of thebodyRefMetadatarecord component.- Returns:
- the value of the
bodyRefMetadatarecord component
-