Interface BytesMessageMapper
- All Superinterfaces:
InboundMessageMapper<byte[]>
,OutboundMessageMapper<byte[]>
- All Known Implementing Classes:
ConvertingBytesMessageMapper
,EmbeddedJsonHeadersMessageMapper
public interface BytesMessageMapper
extends InboundMessageMapper<byte[]>, OutboundMessageMapper<byte[]>
- Since:
- 5.0
- Author:
- Gary Russell
-
Method Summary
Methods inherited from interface org.springframework.integration.mapping.OutboundMessageMapper
fromMessage
-
Method Details
-
toMessage
Description copied from interface:InboundMessageMapper
Convert a provided object to theMessage
.- Specified by:
toMessage
in interfaceInboundMessageMapper<byte[]>
- Parameters:
object
- the object for message payload or some other conversion logic- Returns:
- the message as a result of mapping
-
toMessage
Description copied from interface:InboundMessageMapper
Convert a provided object to theMessage
and supply with headers if necessary and provided.- Specified by:
toMessage
in interfaceInboundMessageMapper<byte[]>
- Parameters:
bytes
- the object for message payload or some other conversion logicheaders
- additional headers for building message. Can be null- Returns:
- the message as a result of mapping
-