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 java.lang.Object implements AbstractKafkaHeaderMapper.HeaderMatcher
A matcher that never matches a set of headers.- Since:
- 2.3
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NeverMatchHeaderMatcher(java.lang.String... headers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isNegated()
Return true if this matcher is a negative matcher.boolean
matchHeader(java.lang.String headerName)
Return true if the header matches.
-
-
-
Method Detail
-
matchHeader
public boolean matchHeader(java.lang.String headerName)
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.
-
-