org.mule.api.transformer
Interface MessageTransformer
- All Superinterfaces:
- Disposable, EndpointAware, Initialisable, MessageProcessor, MuleContextAware, NameableObject, NamedObject, Transformer
- All Known Implementing Classes:
- AbstractAddVariablePropertyTransformer, AbstractExpressionTransformer, AbstractJmsTransformer, AbstractJsonTransformer, AbstractMessageAwareTransformer, AbstractMessageTransformer, AbstractRemoveVariablePropertyTransformer, AbstractXmlTransformer, AbstractXStreamTransformer, AddAttachmentTransformer, AddFlowVariableTransformer, AddPropertyTransformer, AddSessionVariableTransformer, AnnotatedTransformerProxy, AtomEntryBuilderTransformer, AutoTransformer, BeanBuilderTransformer, CopyAttachmentsTransformer, CopyPropertiesTransformer, DomDocumentToXml, ExpressionTransformer, FormTransformer, HttpRequestBodyToParamMap, HttpRequestToBook, HttpRequestToParameter, HttpRequestToParameterMap, JMSMessageToObject, JsonToObject, JsonXsltTransformer, MessagePropertiesTransformer, MuleMessageToByteArray, MuleMessageToHttpResponse, ObjectToHttpClientMethodRequest, ObjectToJMSMessage, ObjectToJson, ObjectToMimeMessage, ObjectToXml, ObjectToXmppPacket, OrderToEmailTransformer, ParseTemplateTransformer, RemoveAttachmentTransformer, RemoveFlowVariableTransformer, RemovePropertyTransformer, RemoveSessionVariableTransformer, RestRequestToCustomerRequest, ScriptTransformer, ServletTransformer, SetPayloadTransformer, StringToEmailMessage, TransformerChain, TransformerTemplate, XmlToDomDocument, XmlToObject, XmlToOutputHandler, XmlToXMLStreamReader, XmppPacketToObject, XQueryTransformer, XsltTransformer
public interface MessageTransformer
- extends Transformer, MessageProcessor
A transformer intended to transform Mule messages rather than arbitrary objects
Methods inherited from interface org.mule.api.transformer.Transformer |
getEncoding, getEndpoint, getMimeType, getReturnClass, getReturnDataType, getSourceDataTypes, getSourceTypes, isAcceptNull, isIgnoreBadInput, isSourceDataTypeSupported, isSourceTypeSupported, setReturnClass, setReturnDataType, transform, transform |
transform
Object transform(Object src,
MuleEvent event)
throws TransformerMessagingException
- Thransforms the supplied data and returns the result
- Parameters:
src
- the data to transformevent
- the event currently being processed
- Returns:
- the transformed data
- Throws:
TransformerMessagingException
- if a error occurs transforming the data or if the
expected returnClass isn't the same as the transformed data
transform
Object transform(Object src,
String encoding,
MuleEvent event)
throws TransformerMessagingException
- Thransforms the supplied data and returns the result
- Parameters:
src
- the data to transformencoding
- the encoding to use by this transformer. many transformations will not need encoding unless
dealing with text so you only need to use this method if yo wish to customize the encodingevent
- the event currently being processed
- Returns:
- the transformed data
- Throws:
TransformerMessagingException
- if a error occurs transforming the data or if the
expected returnClass isn't the same as the transformed data
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.