Class AbstractHeaderMapper.SinglePatternBasedHeaderMatcher
java.lang.Object
org.springframework.integration.mapping.AbstractHeaderMapper.SinglePatternBasedHeaderMatcher
- All Implemented Interfaces:
AbstractHeaderMapper.HeaderMatcher
- Enclosing class:
- AbstractHeaderMapper<T>
protected static class AbstractHeaderMapper.SinglePatternBasedHeaderMatcher extends Object implements AbstractHeaderMapper.HeaderMatcher
A pattern-based
AbstractHeaderMapper.HeaderMatcher 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".
- Since:
- 4.3
- See Also:
PatternMatchUtils.simpleMatch(String, String)
-
Constructor Summary
Constructors Constructor Description SinglePatternBasedHeaderMatcher(String pattern)SinglePatternBasedHeaderMatcher(String pattern, boolean negate) -
Method Summary
Modifier and Type Method Description booleanisNegated()Return true if this match should be explicitly excluded from the mapping.booleanmatchHeader(String headerName)Specify if the givenheaderNamematches.
-
Constructor Details
-
Method Details
-
matchHeader
Description copied from interface:AbstractHeaderMapper.HeaderMatcherSpecify if the givenheaderNamematches.- Specified by:
matchHeaderin interfaceAbstractHeaderMapper.HeaderMatcher- Parameters:
headerName- the header name to be matched.- Returns:
trueifheaderNamematches to thisAbstractHeaderMapper.HeaderMatcher.
-
isNegated
public boolean isNegated()Description copied from interface:AbstractHeaderMapper.HeaderMatcherReturn true if this match should be explicitly excluded from the mapping.- Specified by:
isNegatedin interfaceAbstractHeaderMapper.HeaderMatcher- Returns:
- true if negated.
-