Class AbstractMessageSelector
- java.lang.Object
-
- com.consol.citrus.channel.selector.AbstractMessageSelector
-
- All Implemented Interfaces:
org.springframework.integration.core.GenericSelector<org.springframework.messaging.Message<?>>,org.springframework.integration.core.MessageSelector
- Direct Known Subclasses:
HeaderMatchingMessageSelector,JsonPathPayloadMessageSelector,PayloadMatchingMessageSelector,RootQNameMessageSelector,XpathPayloadMessageSelector
public abstract class AbstractMessageSelector extends Object implements org.springframework.integration.core.MessageSelector
- Since:
- 2.7.5
- Author:
- Christoph Deppisch
-
-
Field Summary
Fields Modifier and Type Field Description protected TestContextcontextTest contextprotected StringmatchingValueprotected StringselectKeyKey and value to evaluate selection with
-
Constructor Summary
Constructors Constructor Description AbstractMessageSelector(String selectKey, String matchingValue, TestContext context)Default constructor using fields.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanevaluate(String value)Evaluates given value to match this selectors matching condition.
-
-
-
Field Detail
-
selectKey
protected final String selectKey
Key and value to evaluate selection with
-
matchingValue
protected final String matchingValue
-
context
protected final TestContext context
Test context
-
-
Constructor Detail
-
AbstractMessageSelector
public AbstractMessageSelector(String selectKey, String matchingValue, TestContext context)
Default constructor using fields.- Parameters:
selectKey-matchingValue-context-
-
-
Method Detail
-
evaluate
protected boolean evaluate(String value)
Evaluates given value to match this selectors matching condition. Automatically supports validation matcher expressions.- Parameters:
value-- Returns:
-
-