Class HeaderRoutingRule

java.lang.Object
com.alibaba.cloud.commons.governance.routing.rule.HeaderRoutingRule
All Implemented Interfaces:
Rule

public class HeaderRoutingRule extends Object implements Rule
Since:
2.2.10-RC1
Author:
HH
  • Constructor Details

    • HeaderRoutingRule

      public HeaderRoutingRule()
  • Method Details

    • getCondition

      public String getCondition()
      Description copied from interface: Rule
      get condition.
      Specified by:
      getCondition in interface Rule
      Returns:
      String
    • setCondition

      public void setCondition(String condition)
      Description copied from interface: Rule
      set condition.
      Specified by:
      setCondition in interface Rule
      Parameters:
      condition - String
    • getKey

      public String getKey()
      Description copied from interface: Rule
      get key of rule.
      Specified by:
      getKey in interface Rule
      Returns:
      String
    • setKey

      public void setKey(String key)
      Description copied from interface: Rule
      set key of rule.
      Specified by:
      setKey in interface Rule
      Parameters:
      key - String
    • getValue

      public String getValue()
      Description copied from interface: Rule
      get value of rule.
      Specified by:
      getValue in interface Rule
      Returns:
      String
    • setValue

      public void setValue(String value)
      Description copied from interface: Rule
      set value of rule.
      Specified by:
      setValue in interface Rule
      Parameters:
      value - String
    • getType

      public String getType()
      Description copied from interface: Rule
      get type of rule.
      Specified by:
      getType in interface Rule
      Returns:
      String
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object