Package io.joynr.messaging
Class RawMessagingPreprocessor
- java.lang.Object
-
- io.joynr.messaging.RawMessagingPreprocessor
-
- Direct Known Subclasses:
NoOpRawMessagingPreprocessor
public abstract class RawMessagingPreprocessor extends Object
-
-
Constructor Summary
Constructors Constructor Description RawMessagingPreprocessor()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract byte[]process(byte[] rawMessage, Optional<Map<String,Serializable>> context)
-
-
-
Method Detail
-
process
public abstract byte[] process(byte[] rawMessage, Optional<Map<String,Serializable>> context)- Parameters:
rawMessage- the raw joynr message bytescontext- you can optionally add String:Serializable pairs to this map, which will be made available to the message's recipient. The value must be serializable. The map is preinitialized.- Returns:
- the processed rawMessage. NOTE: you are responsible for returning a message that can still be parsed by the messaging skeleton; otherwise the message will be discarded.
-
-