Class JsonPathPayloadMessageSelector
- java.lang.Object
-
- com.consol.citrus.channel.selector.AbstractMessageSelector
-
- com.consol.citrus.channel.selector.JsonPathPayloadMessageSelector
-
- All Implemented Interfaces:
org.springframework.integration.core.GenericSelector<org.springframework.messaging.Message<?>>,org.springframework.integration.core.MessageSelector
public class JsonPathPayloadMessageSelector extends AbstractMessageSelector
Message selector accepts JSON messages in case JsonPath expression evaluation result matches the expected value. With this selector someone can select messages according to a message payload JSON element value for instance. Syntax is jsonPath:$.root.element- Since:
- 2.7.5
- Author:
- Christoph Deppisch
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJsonPathPayloadMessageSelector.FactoryMessage selector factory for this implementation.
-
Field Summary
Fields Modifier and Type Field Description static StringSELECTOR_PREFIXSpecial selector key prefix identifying this message selector implementation-
Fields inherited from class com.consol.citrus.channel.selector.AbstractMessageSelector
context, matchingValue, selectKey
-
-
Constructor Summary
Constructors Constructor Description JsonPathPayloadMessageSelector(String expression, String control, TestContext context)Default constructor using fields.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(org.springframework.messaging.Message<?> message)-
Methods inherited from class com.consol.citrus.channel.selector.AbstractMessageSelector
evaluate
-
-
-
-
Field Detail
-
SELECTOR_PREFIX
public static final String SELECTOR_PREFIX
Special selector key prefix identifying this message selector implementation- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JsonPathPayloadMessageSelector
public JsonPathPayloadMessageSelector(String expression, String control, TestContext context)
Default constructor using fields.
-
-