Interface PulsarHeaderMatcher
- All Known Implementing Classes:
PulsarHeaderMatcher.NeverMatch
,PulsarHeaderMatcher.PatternMatch
public interface PulsarHeaderMatcher
Defines the contract for matching message headers.
Used by the header mapper to determine whether an incoming or outgoing message header should be included in the target.
- Author:
- Chris Bono
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
A matcher that never matches a set of headers.static class
A pattern-based header matcher that matches if the specified header matches the specified simple pattern. -
Method Summary
Modifier and TypeMethodDescriptionboolean
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.
-
Method Details
-
matchHeader
Determine if the header matches.- Parameters:
headerName
- the header name- Returns:
- whether the header matches
-
isNegated
boolean isNegated()Determine if this matcher is a negative matcher where a match means that the header should not be included.- Returns:
- whether this matcher is a negative matcher
-