public interface BytesMessageMapper extends InboundMessageMapper<byte[]>, OutboundMessageMapper<byte[]>
| Modifier and Type | Method and Description |
|---|---|
default Message<?> |
toMessage(byte[] object)
Convert a provided object to the
Message. |
Message<?> |
toMessage(byte[] bytes,
Map<String,Object> headers)
Convert a provided object to the
Message
and supply with headers if necessary and provided. |
fromMessage@NonNull default Message<?> toMessage(byte[] object)
InboundMessageMapperMessage.toMessage in interface InboundMessageMapper<byte[]>object - the object for message payload or some other conversion logic@NonNull Message<?> toMessage(byte[] bytes, @Nullable Map<String,Object> headers)
InboundMessageMapperMessage
and supply with headers if necessary and provided.toMessage in interface InboundMessageMapper<byte[]>bytes - the object for message payload or some other conversion logicheaders - additional headers for building message. Can be null