Class ConvertingBytesMessageMapper

java.lang.Object
org.springframework.integration.mapping.ConvertingBytesMessageMapper
All Implemented Interfaces:
BytesMessageMapper, InboundMessageMapper<byte[]>, OutboundMessageMapper<byte[]>

public class ConvertingBytesMessageMapper
extends Object
implements BytesMessageMapper
The BytesMessageMapper implementation to delegate to/from Message conversion into the provided MessageConverter.

The MessageConverter must not return null from its MessageConverter.fromMessage(Message, Class) and MessageConverter.toMessage(Object, MessageHeaders) methods.

If MessageConverter.fromMessage(Message, Class) returns String, it is converted to byte using a StandardCharsets.UTF_8 encoding.

Since:
5.4
Author:
Artem Bilan