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:
-
Constructor Summary
ConstructorDescriptionSinglePatternBasedHeaderMatcher
(String pattern) SinglePatternBasedHeaderMatcher
(String pattern, boolean negate) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return true if this match should be explicitly excluded from the mapping.boolean
matchHeader
(String headerName) Specify if the givenheaderName
matches.
-
Constructor Details
-
SinglePatternBasedHeaderMatcher
-
SinglePatternBasedHeaderMatcher
-
-
Method Details
-
matchHeader
Description copied from interface:AbstractHeaderMapper.HeaderMatcher
Specify if the givenheaderName
matches.- Specified by:
matchHeader
in interfaceAbstractHeaderMapper.HeaderMatcher
- Parameters:
headerName
- the header name to be matched.- Returns:
true
ifheaderName
matches to thisAbstractHeaderMapper.HeaderMatcher
.
-
isNegated
public boolean isNegated()Description copied from interface:AbstractHeaderMapper.HeaderMatcher
Return true if this match should be explicitly excluded from the mapping.- Specified by:
isNegated
in interfaceAbstractHeaderMapper.HeaderMatcher
- Returns:
- true if negated.
-