Record Class HttpContractRecorder.Interaction
java.lang.Object
java.lang.Record
com.shaft.tools.io.internal.HttpContractRecorder.Interaction
- Enclosing class:
HttpContractRecorder
-
Constructor Summary
ConstructorsConstructorDescriptionInteraction(String source, String method, String url, String path, Map<String, String> query, HttpContractRecorder.Message request, HttpContractRecorder.Message response, String failureReason, String traceActionId) Creates an instance of aInteractionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.path()Returns the value of thepathrecord component.query()Returns the value of thequeryrecord component.request()Returns the value of therequestrecord component.response()Returns the value of theresponserecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetraceActionIdrecord component.url()Returns the value of theurlrecord component.
-
Constructor Details
-
Interaction
public Interaction(String source, String method, String url, String path, Map<String, String> query, HttpContractRecorder.Message request, HttpContractRecorder.Message response, String failureReason, String traceActionId) Creates an instance of aInteractionrecord class.- Parameters:
source- the value for thesourcerecord componentmethod- the value for themethodrecord componenturl- the value for theurlrecord componentpath- the value for thepathrecord componentquery- the value for thequeryrecord componentrequest- the value for therequestrecord componentresponse- the value for theresponserecord componentfailureReason- the value for thefailureReasonrecord componenttraceActionId- the value for thetraceActionIdrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
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
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
query
-
request
Returns the value of therequestrecord component.- Returns:
- the value of the
requestrecord component
-
response
Returns the value of theresponserecord component.- Returns:
- the value of the
responserecord component
-
failureReason
Returns the value of thefailureReasonrecord component.- Returns:
- the value of the
failureReasonrecord component
-
traceActionId
Returns the value of thetraceActionIdrecord component.- Returns:
- the value of the
traceActionIdrecord component
-