java.lang.Object
java.lang.Record
org.mockserver.client.RequestExplanation.Arrival
- Record Components:
outcome- how the request was handledexpectationId- the expectation that served it, ornullunlessoutcomeisMATCHEDexpectationStillStored- whether that expectation is still stored, ornullunlessoutcomeisMATCHEDforwardFailure- why the request's forward failed, ornullunless it was forwarded and the forward failed (and always from a server older than this field)
- Enclosing class:
- RequestExplanation
public static record RequestExplanation.Arrival(RequestExplanation.Outcome outcome, String expectationId, Boolean expectationStillStored, RequestExplanation.ForwardFailure forwardFailure)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionArrival(RequestExplanation.Outcome outcome, String expectationId, Boolean expectationStillStored) Arrival(RequestExplanation.Outcome outcome, String expectationId, Boolean expectationStillStored, RequestExplanation.ForwardFailure forwardFailure) Creates an instance of aArrivalrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpectationIdrecord component.Returns the value of theexpectationStillStoredrecord component.Returns the value of theforwardFailurerecord component.final inthashCode()Returns a hash code value for this object.outcome()Returns the value of theoutcomerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Arrival
public Arrival(RequestExplanation.Outcome outcome, String expectationId, Boolean expectationStillStored) -
Arrival
public Arrival(RequestExplanation.Outcome outcome, String expectationId, Boolean expectationStillStored, RequestExplanation.ForwardFailure forwardFailure) Creates an instance of aArrivalrecord class.- Parameters:
outcome- the value for theoutcomerecord componentexpectationId- the value for theexpectationIdrecord componentexpectationStillStored- the value for theexpectationStillStoredrecord componentforwardFailure- the value for theforwardFailurerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
outcome
Returns the value of theoutcomerecord component.- Returns:
- the value of the
outcomerecord component
-
expectationId
Returns the value of theexpectationIdrecord component.- Returns:
- the value of the
expectationIdrecord component
-
expectationStillStored
Returns the value of theexpectationStillStoredrecord component.- Returns:
- the value of the
expectationStillStoredrecord component
-
forwardFailure
Returns the value of theforwardFailurerecord component.- Returns:
- the value of the
forwardFailurerecord component
-