Record Class CaptureEvent.NetworkEvent
java.lang.Object
java.lang.Record
com.shaft.capture.model.CaptureEvent.NetworkEvent
- Record Components:
context- common event contexttransactionId- stable identifier correlating request and response evidenceresourceKind- category of network resourcerequest- sanitized outbound request evidenceresponse- sanitized inbound response evidence, when observedtiming- deterministic timing evidencefailureReason- sanitized failure reason when the transaction did not completeinitiatorPageUrl- sanitized URL of the page that initiated the transaction- sequence of a correlated UI event, when applicable
- All Implemented Interfaces:
CaptureEvent
- Enclosing interface:
CaptureEvent
public static record CaptureEvent.NetworkEvent(EventContext context, String transactionId, ResourceKind resourceKind, HttpRequestRecord request, HttpResponseRecord response, NetworkTiming timing, String failureReason, String initiatorPageUrl, Long correlatedUiSequence)
extends Record
implements CaptureEvent
Captured network transaction. The original request and response body content
is never stored in this model; only safe references are retained.
-
Nested Class Summary
Nested classes/interfaces inherited from interface CaptureEvent
CaptureEvent.AlertAction, CaptureEvent.AlertEvent, CaptureEvent.ClearEvent, CaptureEvent.ClickEvent, CaptureEvent.FrameAction, CaptureEvent.FrameEvent, CaptureEvent.KeyboardEvent, CaptureEvent.MouseButton, CaptureEvent.NavigationAction, CaptureEvent.NavigationEvent, CaptureEvent.NetworkEvent, CaptureEvent.SelectEvent, CaptureEvent.SelectMode, CaptureEvent.ToggleEvent, CaptureEvent.TypeEvent, CaptureEvent.UploadEvent, CaptureEvent.VerificationEvent, CaptureEvent.VerificationKind, CaptureEvent.WaitCondition, CaptureEvent.WaitEvent, CaptureEvent.WindowAction, CaptureEvent.WindowEvent -
Constructor Summary
ConstructorsConstructorDescriptionNetworkEvent(EventContext context, String transactionId, ResourceKind resourceKind, HttpRequestRecord request, HttpResponseRecord response, NetworkTiming timing, String failureReason, String initiatorPageUrl, Long correlatedUiSequence) Creates a network event. -
Method Summary
Modifier and TypeMethodDescriptioncontext()Returns the value of thecontextrecord component.Returns the value of thecorrelatedUiSequencerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefailureReasonrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinitiatorPageUrlrecord component.request()Returns the value of therequestrecord component.Returns the value of theresourceKindrecord component.response()Returns the value of theresponserecord component.timing()Returns the value of thetimingrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransactionIdrecord component.
-
Constructor Details
-
NetworkEvent
public NetworkEvent(EventContext context, String transactionId, ResourceKind resourceKind, HttpRequestRecord request, HttpResponseRecord response, NetworkTiming timing, String failureReason, String initiatorPageUrl, Long correlatedUiSequence) Creates a network event.
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
context
Returns the value of thecontextrecord component.- Specified by:
contextin interfaceCaptureEvent- Returns:
- the value of the
contextrecord component
-
transactionId
Returns the value of thetransactionIdrecord component.- Returns:
- the value of the
transactionIdrecord component
-
resourceKind
Returns the value of theresourceKindrecord component.- Returns:
- the value of the
resourceKindrecord component
-
request
-
response
-
timing
-
failureReason
Returns the value of thefailureReasonrecord component.- Returns:
- the value of the
failureReasonrecord component
-
initiatorPageUrl
Returns the value of theinitiatorPageUrlrecord component.- Returns:
- the value of the
initiatorPageUrlrecord component
-