public class ObjectToJson extends AbstractJsonTransformer
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger
logger used by this class
|
protected Class<?> |
sourceClass |
weightingencoding, endpoint, mimeType, MULE_MESSAGE_DATA_TYPE, muleContext, name, returnType, sourceTypesDEFAULT_PRIORITY_WEIGHTING, MAX_PRIORITY_WEIGHTING, MIN_PRIORITY_WEIGHTINGPHASE_NAMEPHASE_NAMEPROPERTY_NAME| Constructor and Description |
|---|
ObjectToJson() |
| Modifier and Type | Method and Description |
|---|---|
Map<Class<?>,Class<?>> |
getSerializationMixins() |
Class<?> |
getSourceClass() |
void |
initialise() |
boolean |
isHandleException() |
void |
setHandleException(boolean handleException) |
void |
setSerializationMixins(Map<Class<?>,Class<?>> serializationMixins) |
void |
setSourceClass(Class<?> sourceClass) |
Object |
transformMessage(MuleMessage message,
String outputEncoding) |
getMapper, getMixins, getPriorityWeighting, setMapper, setMixins, setPriorityWeightingcheckReturnClass, doTransform, isSourceDataTypeSupported, transform, transform, transformdispose, generateTransformerName, getEncoding, getEncoding, getEndpoint, getMimeType, getName, getReturnClass, getReturnDataType, getSourceDataTypes, getSourceTypes, isAcceptNull, isAllowNullReturn, isConsumed, isIgnoreBadInput, isSourceDataTypeSupported, isSourceTypeSupported, isSourceTypeSupported, process, registerSourceType, registerSourceType, setAllowNullReturn, setEncoding, setEndpoint, setIgnoreBadInput, setMimeType, setMuleContext, setName, setReturnClass, setReturnDataType, toString, transform, unregisterSourceType, unregisterSourceTypegetAnnotation, getAnnotations, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEncoding, getEndpoint, getMimeType, getReturnClass, getReturnDataType, getSourceDataTypes, getSourceTypes, isAcceptNull, isIgnoreBadInput, isSourceDataTypeSupported, isSourceTypeSupported, setReturnClass, setReturnDataType, transform, transformprocessdisposesetNamegetNamesetMuleContextsetEndpointprotected final transient org.apache.commons.logging.Log logger
protected Class<?> sourceClass
public void initialise()
throws InitialisationException
initialise in interface Initialisableinitialise in class AbstractJsonTransformerInitialisationExceptionpublic Object transformMessage(MuleMessage message, String outputEncoding) throws TransformerException
transformMessage in class AbstractMessageTransformerTransformerExceptionpublic boolean isHandleException()
public void setHandleException(boolean handleException)
public Class<?> getSourceClass()
public void setSourceClass(Class<?> sourceClass)
Copyright © 2003–2021 MuleSoft, Inc.. All rights reserved.