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.EXPRESSION_PARSER, logger| Constructor and Description |
|---|
ObjectToStringTransformer() |
ObjectToStringTransformer(java.lang.String charset) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
protected java.lang.String |
transformPayload(java.lang.Object payload) |
doTransformtransformafterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, onInit, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringpublic ObjectToStringTransformer()
public ObjectToStringTransformer(java.lang.String charset)
public java.lang.String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class IntegrationObjectSupportprotected 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