Interface JoynrMessageProcessor


  • public interface JoynrMessageProcessor
    Implementations of this interface are used by the io.joynr.dispatching.MutableMessageFactory in order to allow applications to provide logic which processes messages further after they've been created, but before they've been signed and sent.
    • Method Detail

      • processOutgoing

        MutableMessage processOutgoing​(MutableMessage joynrMessage)
        This method is passed in a joynr message, which was created and is prepared for transmission. It can then process, e.g. add or change headers, encrypt the payload, etc., and then returns a new message which is then used for further processing.
        Parameters:
        joynrMessage - the message to process.
        Returns:
        the message which should be used.
      • processIncoming

        ImmutableMessage processIncoming​(ImmutableMessage joynrMessage)
        This method is passed in a joynr message which was received by the messaging layer. It can then process, e.g. add or change headers, encrypt the payload, etc., and then returns a new message which is then used for further processing.
        Parameters:
        joynrMessage - the message to process.
        Returns:
        the message which should be used.