public class ObjectToStringTransformer extends AbstractPayloadTransformer<java.lang.Object,java.lang.String>
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.logger| Constructor and Description |
|---|
ObjectToStringTransformer() |
ObjectToStringTransformer(java.lang.String charset) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
transformPayload(java.lang.Object payload) |
doTransformtransformafterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getComponentType, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, onInit, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toStringpublic ObjectToStringTransformer()
public ObjectToStringTransformer(java.lang.String charset)
protected java.lang.String transformPayload(java.lang.Object payload)
throws java.lang.Exception
transformPayload in class AbstractPayloadTransformer<java.lang.Object,java.lang.String>java.lang.Exception