public class ObjectToJsonTransformer extends AbstractTransformer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
JSON_CONTENT_TYPE |
logger
Constructor and Description |
---|
ObjectToJsonTransformer() |
ObjectToJsonTransformer(JsonObjectMapper<?> jsonObjectMapper) |
ObjectToJsonTransformer(java.lang.Object objectMapper)
Deprecated.
in favor of
ObjectToJsonTransformer(JsonObjectMapper) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
doTransform(Message<?> message)
Subclasses must implement this method to provide the transformation
logic.
|
void |
setContentType(java.lang.String contentType)
Sets the content-type header value
|
transform
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getComponentType, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, onInit, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString
public static final java.lang.String JSON_CONTENT_TYPE
@Deprecated public ObjectToJsonTransformer(java.lang.Object objectMapper)
ObjectToJsonTransformer(JsonObjectMapper)
public ObjectToJsonTransformer(JsonObjectMapper<?> jsonObjectMapper)
public ObjectToJsonTransformer()
public void setContentType(java.lang.String contentType)
contentType
- protected java.lang.Object doTransform(Message<?> message) throws java.lang.Exception
AbstractTransformer
doTransform
in class AbstractTransformer
java.lang.Exception