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 theconsumes
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.produces()
Returns the value of theproduces
record component.Returns the value of theresponseCode
record component.Returns the value of theresponseHeaders
record component.final String
toString()
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 aValidationContext
record class.- Parameters:
consumes
- the value for theconsumes
record componentproduces
- the value for theproduces
record componentresponseCode
- the value for theresponseCode
record componentresponseHeaders
- the value for theresponseHeaders
record 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 theconsumes
record component.- Returns:
- the value of the
consumes
record component
-
produces
Returns the value of theproduces
record component.- Returns:
- the value of the
produces
record component
-
responseCode
Returns the value of theresponseCode
record component.- Returns:
- the value of the
responseCode
record component
-
responseHeaders
Returns the value of theresponseHeaders
record component.- Returns:
- the value of the
responseHeaders
record component
-