Record Class BrowserObservabilityRecorder.NetworkObservation
java.lang.Object
java.lang.Record
com.shaft.tools.io.internal.BrowserObservabilityRecorder.NetworkObservation
- Enclosing class:
BrowserObservabilityRecorder
public static record BrowserObservabilityRecorder.NetworkObservation(String method, String url, int status, Map<String,String> requestHeaders, Map<String,String> responseHeaders, long durationMs, long requestSize, long responseSize, String failureReason, String bodyPreview)
extends Record
Browser network exchange details recorded into the trace.
-
Constructor Summary
ConstructorsConstructorDescriptionNetworkObservation(String method, String url, int status, Map<String, String> requestHeaders, Map<String, String> responseHeaders, long durationMs, long requestSize, long responseSize, String failureReason, String bodyPreview) Creates an instance of aNetworkObservationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebodyPreviewrecord component.longReturns the value of thedurationMsrecord 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.method()Returns the value of themethodrecord component.Returns the value of therequestHeadersrecord component.longReturns the value of therequestSizerecord component.Returns the value of theresponseHeadersrecord component.longReturns the value of theresponseSizerecord component.intstatus()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
NetworkObservation
public NetworkObservation(String method, String url, int status, Map<String, String> requestHeaders, Map<String, String> responseHeaders, long durationMs, long requestSize, long responseSize, String failureReason, String bodyPreview) Creates an instance of aNetworkObservationrecord class.- Parameters:
method- the value for themethodrecord componenturl- the value for theurlrecord componentstatus- the value for thestatusrecord componentrequestHeaders- the value for therequestHeadersrecord componentresponseHeaders- the value for theresponseHeadersrecord componentdurationMs- the value for thedurationMsrecord componentrequestSize- the value for therequestSizerecord componentresponseSize- the value for theresponseSizerecord componentfailureReason- the value for thefailureReasonrecord componentbodyPreview- the value for thebodyPreviewrecord component
-
-
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. -
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
status
public int status()Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
requestHeaders
-
responseHeaders
-
durationMs
public long durationMs()Returns the value of thedurationMsrecord component.- Returns:
- the value of the
durationMsrecord component
-
requestSize
public long requestSize()Returns the value of therequestSizerecord component.- Returns:
- the value of the
requestSizerecord component
-
responseSize
public long responseSize()Returns the value of theresponseSizerecord component.- Returns:
- the value of the
responseSizerecord component
-
failureReason
Returns the value of thefailureReasonrecord component.- Returns:
- the value of the
failureReasonrecord component
-
bodyPreview
Returns the value of thebodyPreviewrecord component.- Returns:
- the value of the
bodyPreviewrecord component
-