Class ObjectStringMessageConverter

All Implemented Interfaces:
MessageConverter, SmartMessageConverter

public class ObjectStringMessageConverter extends StringMessageConverter
A StringMessageConverter extension to convert any object to string.

Delegates to super when payload is byte[] or String. Performs Object.toString() in other cases.

This class is intended to serve as a fallback converter for internal message deserialization purposes. Therefore, it is recommended to exclusively use the fromMessage method with String.class as the targetClass.

Since:
5.0
Author:
Marius Bogoevici, Artem Bilan, Falk Hanisch