Module org.mockserver.client
Package org.mockserver.client
Record Class RequestExplanation.ExplainedRequest
java.lang.Object
java.lang.Record
org.mockserver.client.RequestExplanation.ExplainedRequest
- Record Components:
timestamp- when the request was recorded, as the event log formats itmethod- the request methodpath- the request pathbodyTruncated- whether the event log kept only the start of the body, so body matching used that copybodyTruncatedNote- the server's note on the truncated body, ornull
- Enclosing class:
- RequestExplanation
-
Constructor Summary
ConstructorsConstructorDescriptionExplainedRequest(String timestamp, String method, String path, boolean bodyTruncated, String bodyTruncatedNote) Creates an instance of aExplainedRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thebodyTruncatedrecord component.Returns the value of thebodyTruncatedNoterecord 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.path()Returns the value of thepathrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExplainedRequest
public ExplainedRequest(String timestamp, String method, String path, boolean bodyTruncated, String bodyTruncatedNote) Creates an instance of aExplainedRequestrecord class.- Parameters:
timestamp- the value for thetimestamprecord componentmethod- the value for themethodrecord componentpath- the value for thepathrecord componentbodyTruncated- the value for thebodyTruncatedrecord componentbodyTruncatedNote- the value for thebodyTruncatedNoterecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
bodyTruncated
public boolean bodyTruncated()Returns the value of thebodyTruncatedrecord component.- Returns:
- the value of the
bodyTruncatedrecord component
-
bodyTruncatedNote
Returns the value of thebodyTruncatedNoterecord component.- Returns:
- the value of the
bodyTruncatedNoterecord component
-