Class PulsarHeaderMatcher.PatternMatch

java.lang.Object
org.springframework.pulsar.support.header.PulsarHeaderMatcher.PatternMatch
All Implemented Interfaces:
PulsarHeaderMatcher
Enclosing interface:
PulsarHeaderMatcher

public static class PulsarHeaderMatcher.PatternMatch extends Object implements PulsarHeaderMatcher
A pattern-based header matcher that matches if the specified header matches the specified simple pattern.
See Also:
  • Constructor Details

    • PatternMatch

      public PatternMatch(String pattern, boolean negate)
  • Method Details

    • fromPatternString

      public static PulsarHeaderMatcher.PatternMatch fromPatternString(String pattern)
    • matchHeader

      public boolean matchHeader(String headerName)
      Description copied from interface: PulsarHeaderMatcher
      Determine if the header matches.
      Specified by:
      matchHeader in interface PulsarHeaderMatcher
      Parameters:
      headerName - the header name
      Returns:
      whether the header matches
    • isNegated

      public boolean isNegated()
      Description copied from interface: PulsarHeaderMatcher
      Determine if this matcher is a negative matcher where a match means that the header should not be included.
      Specified by:
      isNegated in interface PulsarHeaderMatcher
      Returns:
      whether this matcher is a negative matcher
    • toPatternString

      public String toPatternString()