Package io.joynr.messaging
Interface JoynrMessageProcessor
-
public interface JoynrMessageProcessorImplementations 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ImmutableMessageprocessIncoming(ImmutableMessage joynrMessage)This method is passed in a joynr message which was received by the messaging layer.MutableMessageprocessOutgoing(MutableMessage joynrMessage)This method is passed in a joynr message, which was created and is prepared for transmission.
-
-
-
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.
-
-