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