Object to string transformer
Transformer that converts any message payload to a string payload.
A simple transformer that creates an outbound payload by invoking the inbound payload's toString()
method, unless the payload is a byte[]
or char[]
.
If the payload is a byte[]
, it will be transformed to a string containing the array's contents, using the charset which by default is UTF-8
.
If the payload is a char[]
, it will be transformed to a string object with the array's contents.
Charset
Specify the charset (e.g., US-ASCII
, ISO-8859-1
, UTF-8
) to be used when transforming byte[]
payloads. When transforming any other type of payload this setting has no effect.
Default is UTF-8
.
Output channel
Channel where output messages should be sent after (successfully) processing the input message.
You can select the nullChannel
here to silently drop the output messages.
Required
Input channel
Channel to consume the input messages from.
Required
Id
Name that uniquely identifies this flow component.
Required