-
Method Summary
-
Method Details
-
Convert a provided object to the
Message
.
- Specified by:
toMessage
in interface InboundMessageMapper<byte[]>
- Parameters:
object
- the object for message payload or some other conversion logic
- Returns:
- the message as a result of mapping
-
Convert a provided object to the
Message
and supply with headers if necessary and provided.
- Specified by:
toMessage
in interface InboundMessageMapper<byte[]>
- Parameters:
bytes
- the object for message payload or some other conversion logic
headers
- additional headers for building message. Can be null
- Returns:
- the message as a result of mapping