Record Class RestClientResponseValidator.ValidationContext
java.lang.Object
java.lang.Record
org.apache.camel.spi.RestClientResponseValidator.ValidationContext
- Record Components:
consumes- content-type this service can consumeproduces- content-type this service can produceresponseCode- the different response codes and their content-typeresponseHeaders- the response headers
- Enclosing interface:
RestClientResponseValidator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconsumes()Returns the value of theconsumesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.produces()Returns the value of theproducesrecord component.Returns the value of theresponseCoderecord component.Returns the value of theresponseHeadersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ValidationContext
public ValidationContext(String consumes, String produces, Map<String, String> responseCode, Set<String> responseHeaders) Creates an instance of aValidationContextrecord class.- Parameters:
consumes- the value for theconsumesrecord componentproduces- the value for theproducesrecord componentresponseCode- the value for theresponseCoderecord componentresponseHeaders- the value for theresponseHeadersrecord 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). -
consumes
-
produces
-
responseCode
Returns the value of theresponseCoderecord component.- Returns:
- the value of the
responseCoderecord component
-
responseHeaders
Returns the value of theresponseHeadersrecord component.- Returns:
- the value of the
responseHeadersrecord component
-