Class PulsarHeaderMatcher.PatternMatch
java.lang.Object
org.springframework.pulsar.support.header.PulsarHeaderMatcher.PatternMatch
- All Implemented Interfaces:
PulsarHeaderMatcher
- Enclosing interface:
- PulsarHeaderMatcher
A pattern-based header matcher that matches if the specified header matches the
specified simple pattern.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.pulsar.support.header.PulsarHeaderMatcher
PulsarHeaderMatcher.NeverMatch, PulsarHeaderMatcher.PatternMatch
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromPatternString
(String pattern) boolean
Determine if this matcher is a negative matcher where a match means that the header should not be included.boolean
matchHeader
(String headerName) Determine if the header matches.
-
Constructor Details
-
PatternMatch
-
-
Method Details
-
fromPatternString
-
matchHeader
Description copied from interface:PulsarHeaderMatcher
Determine if the header matches.- Specified by:
matchHeader
in interfacePulsarHeaderMatcher
- 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 interfacePulsarHeaderMatcher
- Returns:
- whether this matcher is a negative matcher
-
toPatternString
-