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 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 thequeryAllowedValues
record component.Returns the value of thequeryDefaultValues
record component.boolean
Returns the value of therequiredBody
record component.Returns the value of therequiredHeaders
record component.Returns the value of therequiredQueryParameters
record component.final String
toString()
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 aValidationContext
record class.- Parameters:
consumes
- the value for theconsumes
record componentproduces
- the value for theproduces
record componentrequiredBody
- the value for therequiredBody
record componentqueryDefaultValues
- the value for thequeryDefaultValues
record componentqueryAllowedValues
- the value for thequeryAllowedValues
record componentrequiredQueryParameters
- the value for therequiredQueryParameters
record componentrequiredHeaders
- the value for therequiredHeaders
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
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
-
requiredBody
public boolean requiredBody()Returns the value of therequiredBody
record component.- Returns:
- the value of the
requiredBody
record component
-
queryDefaultValues
Returns the value of thequeryDefaultValues
record component.- Returns:
- the value of the
queryDefaultValues
record component
-
queryAllowedValues
Returns the value of thequeryAllowedValues
record component.- Returns:
- the value of the
queryAllowedValues
record component
-
requiredQueryParameters
Returns the value of therequiredQueryParameters
record component.- Returns:
- the value of the
requiredQueryParameters
record component
-
requiredHeaders
Returns the value of therequiredHeaders
record component.- Returns:
- the value of the
requiredHeaders
record component
-