Class AbstractKafkaHeaderMapper.NeverMatchHeaderMatcher
java.lang.Object
org.springframework.kafka.support.AbstractKafkaHeaderMapper.NeverMatchHeaderMatcher
- All Implemented Interfaces:
AbstractKafkaHeaderMapper.HeaderMatcher
- Enclosing class:
- AbstractKafkaHeaderMapper
protected static class AbstractKafkaHeaderMapper.NeverMatchHeaderMatcher
extends Object
implements AbstractKafkaHeaderMapper.HeaderMatcher
A matcher that never matches a set of headers.
- Since:
- 2.3
-
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
-
NeverMatchHeaderMatcher
-
-
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.
-