Class HeaderMatchingMessageSelector

  • All Implemented Interfaces:
    com.consol.citrus.message.MessageSelector

    public class HeaderMatchingMessageSelector
    extends AbstractMessageSelector
    Message selector matches one or more header elements with the message header. Only in case all matching header elements are present in message header and its value matches the expected value the message is accepted.
    Author:
    Christoph Deppisch
    • 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

      • HeaderMatchingMessageSelector

        public HeaderMatchingMessageSelector​(String selectKey,
                                             String matchingValue,
                                             com.consol.citrus.context.TestContext context)
        Default constructor using fields.
    • Method Detail

      • accept

        public boolean accept​(com.consol.citrus.message.Message message)