Package dev.agenor.runtime.filter
Class HeaderFilter
java.lang.Object
dev.agenor.runtime.filter.HeaderFilter
- All Implemented Interfaces:
MessageFilter,Predicate<Message>
Filter messages by header values
-
Method Summary
Modifier and TypeMethodDescriptionstatic HeaderFilterHeader must equal valuestatic HeaderFilterHeader must existstatic HeaderFilterHeader must be in set of valuesstatic HeaderFilterHeader must match regexstatic HeaderFilterstartsWith(String key, String prefix) Header must start with prefixbooleanTest if the message matches this filterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.agenor.core.filter.MessageFilter
and, negate, or
-
Method Details
-
test
Description copied from interface:MessageFilterTest if the message matches this filter- Specified by:
testin interfaceMessageFilter- Specified by:
testin interfacePredicate<Message>- Parameters:
message- the message to test- Returns:
- true if the message matches the filter criteria
-
exists
Header must exist -
equals
Header must equal value -
matches
Header must match regex -
in
Header must be in set of values -
startsWith
Header must start with prefix
-