public class ObjectToXml extends AbstractXStreamTransformer
ObjectToXml converts any object to XML using Xstream. Xstream uses some clever tricks so objects that get
marshalled to XML do not need to implement any interfaces including Serializable and you don't even need to specify a default
constructor. If Message is configured as a source type on this transformer by calling
setAcceptMuleMessage(true) then the Message will be serialised. This is useful for transports such as TCP where
the message headers would normally be lost.ReactiveProcessor.ProcessingTypelogger, muleContext, name, sourceTypes| Constructor and Description |
|---|
ObjectToXml() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAcceptMuleMessage() |
void |
setAcceptMuleMessage(boolean value) |
Object |
transformMessage(Event event,
Charset outputEncoding) |
addAlias, addConverter, clone, getAliases, getConverters, getDriverClass, getXStream, initialise, removeAlias, removeAlias, setAliases, setConverters, setDriverClasscheckReturnClass, doTransform, isSourceDataTypeSupported, transform, transform, transformdispose, generateTransformerName, getName, getReturnDataType, getSourceDataTypes, isAcceptNull, isAllowNullReturn, isConsumed, isIgnoreBadInput, isSourceDataTypeSupported, process, registerSourceType, resolveEncoding, setAllowNullReturn, setIgnoreBadInput, setMuleContext, setName, setReturnDataType, toString, transform, unregisterSourceTypegetAnnotation, getAnnotations, setAnnotationsequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetProccesingType, getReturnDataType, getSourceDataTypes, isAcceptNull, isIgnoreBadInput, isSourceDataTypeSupported, setReturnDataType, transformsetMuleContextpublic boolean isAcceptMuleMessage()
public void setAcceptMuleMessage(boolean value)
public Object transformMessage(Event event, Charset outputEncoding) throws TransformerException
transformMessage in class AbstractMessageTransformerTransformerExceptionCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.