Module org.mockserver.client
Package org.mockserver.client
Record Class RequestExplanation.ForwardFailure
java.lang.Object
java.lang.Record
org.mockserver.client.RequestExplanation.ForwardFailure
- Record Components:
statusCode- the status MockServer answered with, ornullreason- why the forward failed, redacted as the event log is and capped at 2048 charactersreasonTruncated- whetherreasonwas cappedcauseNamed- whether MockServer named the cause (whenfalsethe reason is the raw error), ornullforwardLoopSuspected- whether the forward appears to have gone back to MockServer itself, ornullhint- what to look at next, ornull; sent whencauseNamedisfalse
- Enclosing class:
- RequestExplanation
public static record RequestExplanation.ForwardFailure(Integer statusCode, String reason, boolean reasonTruncated, Boolean causeNamed, Boolean forwardLoopSuspected, String hint)
extends Record
The request was forwarded and the forward failed, so MockServer answered with a
502.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecauseNamedrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theforwardLoopSuspectedrecord component.final inthashCode()Returns a hash code value for this object.hint()Returns the value of thehintrecord component.reason()Returns the value of thereasonrecord component.booleanReturns the value of thereasonTruncatedrecord component.Returns the value of thestatusCoderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ForwardFailure
public ForwardFailure(Integer statusCode, String reason, boolean reasonTruncated, Boolean causeNamed, Boolean forwardLoopSuspected, String hint) Creates an instance of aForwardFailurerecord class.- Parameters:
statusCode- the value for thestatusCoderecord componentreason- the value for thereasonrecord componentreasonTruncated- the value for thereasonTruncatedrecord componentcauseNamed- the value for thecauseNamedrecord componentforwardLoopSuspected- the value for theforwardLoopSuspectedrecord componenthint- the value for thehintrecord 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 '=='. -
statusCode
Returns the value of thestatusCoderecord component.- Returns:
- the value of the
statusCoderecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
reasonTruncated
public boolean reasonTruncated()Returns the value of thereasonTruncatedrecord component.- Returns:
- the value of the
reasonTruncatedrecord component
-
causeNamed
Returns the value of thecauseNamedrecord component.- Returns:
- the value of the
causeNamedrecord component
-
forwardLoopSuspected
Returns the value of theforwardLoopSuspectedrecord component.- Returns:
- the value of the
forwardLoopSuspectedrecord component
-
hint
Returns the value of thehintrecord component.- Returns:
- the value of the
hintrecord component
-