Record Class RestClientRequestValidator.ValidationContext

java.lang.Object
java.lang.Record
org.apache.camel.spi.RestClientRequestValidator.ValidationContext
Record Components:
consumes - content-type this service can consume
produces - content-type this service can produce
requiredBody - whether the message body is required
queryDefaultValues - default values for HTTP query parameters
queryAllowedValues - allowed values for HTTP query parameters
requiredQueryParameters - names of HTTP query parameters that are required
requiredHeaders - 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 Details

  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • consumes

      public String consumes()
      Returns the value of the consumes record component.
      Returns:
      the value of the consumes record component
    • produces

      public String produces()
      Returns the value of the produces record component.
      Returns:
      the value of the produces record component
    • requiredBody

      public boolean requiredBody()
      Returns the value of the requiredBody record component.
      Returns:
      the value of the requiredBody record component
    • queryDefaultValues

      public Map<String,String> queryDefaultValues()
      Returns the value of the queryDefaultValues record component.
      Returns:
      the value of the queryDefaultValues record component
    • queryAllowedValues

      public Map<String,String> queryAllowedValues()
      Returns the value of the queryAllowedValues record component.
      Returns:
      the value of the queryAllowedValues record component
    • requiredQueryParameters

      public Set<String> requiredQueryParameters()
      Returns the value of the requiredQueryParameters record component.
      Returns:
      the value of the requiredQueryParameters record component
    • requiredHeaders

      public Set<String> requiredHeaders()
      Returns the value of the requiredHeaders record component.
      Returns:
      the value of the requiredHeaders record component