Package org.apache.camel.spi
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
public static record RestClientResponseValidator.ValidationContext(String consumes, String produces, Map<String,String> responseCode, Set<String> responseHeaders)
extends Record
Validation context to use during validation
-
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
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). -
consumes
Returns the value of theconsumesrecord component.- Returns:
- the value of the
consumesrecord component
-
produces
Returns the value of theproducesrecord component.- Returns:
- the value of the
producesrecord component
-
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
-