Class AbstractKafkaHeaderMapper.SimplePatternBasedHeaderMatcher
java.lang.Object
org.springframework.kafka.support.AbstractKafkaHeaderMapper.SimplePatternBasedHeaderMatcher
- All Implemented Interfaces:
AbstractKafkaHeaderMapper.HeaderMatcher
- Enclosing class:
- AbstractKafkaHeaderMapper
protected static class AbstractKafkaHeaderMapper.SimplePatternBasedHeaderMatcher
extends Object
implements AbstractKafkaHeaderMapper.HeaderMatcher
A pattern-based header matcher that matches if the specified
header matches the specified simple pattern.
The negate == true
state indicates if the matching should be treated as "not matched".
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return true if this matcher is a negative matcher.boolean
matchHeader
(String headerName) Return true if the header matches.
-
Constructor Details
-
SimplePatternBasedHeaderMatcher
-
-
Method Details
-
matchHeader
Description copied from interface:AbstractKafkaHeaderMapper.HeaderMatcher
Return true if the header matches.- Specified by:
matchHeader
in interfaceAbstractKafkaHeaderMapper.HeaderMatcher
- Parameters:
headerName
- the header name.- Returns:
- true for a match.
-
isNegated
public boolean isNegated()Description copied from interface:AbstractKafkaHeaderMapper.HeaderMatcher
Return true if this matcher is a negative matcher.- Specified by:
isNegated
in interfaceAbstractKafkaHeaderMapper.HeaderMatcher
- Returns:
- true for a negative matcher.
-