Class AbstractMessageProcessor

    • Constructor Detail

      • AbstractMessageProcessor

        public AbstractMessageProcessor()
    • Method Detail

      • process

        public void process​(Message message,
                            TestContext context)
        Description copied from interface: MessageProcessor
        Process message with given test context. Processors can change the message payload and headers.
        Specified by:
        process in interface MessageProcessor
        Parameters:
        message - the message to process.
        context - the current test context.
      • processMessage

        protected void processMessage​(Message message,
                                      TestContext context)
        Subclasses may overwrite this method in order to modify payload and/or headers of the processed message.
        Parameters:
        message - the message to process.
        context - the current test context.
      • supportsMessageType

        public boolean supportsMessageType​(String messageType)
        Description copied from interface: MessageTypeSelector
        Checks if this message processor is capable of handling the given message type.
        Specified by:
        supportsMessageType in interface MessageTypeSelector
        Parameters:
        messageType - the message type representation as String (e.g. xml, json, csv, plaintext).
        Returns:
        true if this component supports the message type.
      • getName

        protected String getName()
        Gets this processors name.
        Returns:
      • setDirection

        public void setDirection​(MessageDirection direction)
        Sets the processor direction (inbound, outbound, unbound).
        Parameters:
        direction -