Class BindingParameter

java.lang.Object
com.invirgance.convirgance.web.service.BindingParameter
All Implemented Interfaces:
Comparable

@Wiring public class BindingParameter extends Object implements Comparable
Provides access to request parameters within the data processing pipeline. BindingParameter acts as a reference to a specific request parameter stored in thread-local storage.
 Common uses include:
 - Accessing request values in filter conditions
 - Referencing request parameters in transformers
 - Using request parameters as values in expressions
 
Author:
jbanes
  • Constructor Details

    • BindingParameter

      public BindingParameter()
    • BindingParameter

      public BindingParameter(String key)
      Creates a new BindingParameter with the specified key.
      Parameters:
      key - The parameter key to retrieve from request parameters
  • Method Details

    • getKey

      public String getKey()
      Gets the parameter key.
      Returns:
      The parameter key
    • setKey

      public void setKey(String key)
      Sets the parameter key to retrieve from request parameters.
      Parameters:
      key - The parameter key
    • getValue

      public Object getValue()
      Retrieves the value of the parameter from thread-local request parameters.
      Returns:
      The parameter value
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Compares the parameter value with another object for equality.
      Overrides:
      equals in class Object
      Parameters:
      obj - The object to compare with
      Returns:
      true if the parameter value equals the object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(Object object)
      This enables BindingParameter instances to be used directly in comparison operations with values of different types.
      Specified by:
      compareTo in interface Comparable
      Parameters:
      object - The object to compare with
      Returns:
      A negative integer, zero, or a positive integer if this value is less than, equal to, or greater than the specified object