Package org.apache.camel.spi
Record Class RestClientRequestValidator.ValidationContext
java.lang.Object
java.lang.Record
org.apache.camel.spi.RestClientRequestValidator.ValidationContext
- Record Components:
consumes- content-type this service can consumeproduces- content-type this service can producerequiredBody- whether the message body is requiredqueryDefaultValues- default values for HTTP query parametersqueryAllowedValues- allowed values for HTTP query parametersrequiredQueryParameters- names of HTTP query parameters that are requiredrequiredHeaders- names of HTTP headers parameters that are required
- Enclosing interface:
RestClientRequestValidator
public static record RestClientRequestValidator.ValidationContext(String consumes, String produces, boolean requiredBody, Map<String,String> queryDefaultValues, Map<String,String> queryAllowedValues, Set<String> requiredQueryParameters, Set<String> requiredHeaders)
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 thequeryAllowedValuesrecord component.Returns the value of thequeryDefaultValuesrecord component.booleanReturns the value of therequiredBodyrecord component.Returns the value of therequiredHeadersrecord component.Returns the value of therequiredQueryParametersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ValidationContext
public ValidationContext(String consumes, String produces, boolean requiredBody, Map<String, String> queryDefaultValues, Map<String, String> queryAllowedValues, Set<String> requiredQueryParameters, Set<String> requiredHeaders) Creates an instance of aValidationContextrecord class.- Parameters:
consumes- the value for theconsumesrecord componentproduces- the value for theproducesrecord componentrequiredBody- the value for therequiredBodyrecord componentqueryDefaultValues- the value for thequeryDefaultValuesrecord componentqueryAllowedValues- the value for thequeryAllowedValuesrecord componentrequiredQueryParameters- the value for therequiredQueryParametersrecord componentrequiredHeaders- the value for therequiredHeadersrecord 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 '=='. -
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
-
requiredBody
public boolean requiredBody()Returns the value of therequiredBodyrecord component.- Returns:
- the value of the
requiredBodyrecord component
-
queryDefaultValues
Returns the value of thequeryDefaultValuesrecord component.- Returns:
- the value of the
queryDefaultValuesrecord component
-
queryAllowedValues
Returns the value of thequeryAllowedValuesrecord component.- Returns:
- the value of the
queryAllowedValuesrecord component
-
requiredQueryParameters
Returns the value of therequiredQueryParametersrecord component.- Returns:
- the value of the
requiredQueryParametersrecord component
-
requiredHeaders
Returns the value of therequiredHeadersrecord component.- Returns:
- the value of the
requiredHeadersrecord component
-