public interface MessageTransformer extends Transformer
PHASE_NAMEPHASE_NAME| Modifier and Type | Method and Description |
|---|---|
Object |
transform(Object src,
MuleEvent event)
Thransforms the supplied data and returns the result
|
Object |
transform(Object src,
String encoding,
MuleEvent event)
Thransforms the supplied data and returns the result
|
getEncoding, getEndpoint, getMimeType, getReturnClass, getReturnDataType, getSourceDataTypes, getSourceTypes, isAcceptNull, isIgnoreBadInput, isSourceDataTypeSupported, isSourceTypeSupported, setReturnClass, setReturnDataType, transform, transformprocessinitialisedisposesetNamegetNamesetMuleContextsetEndpointObject transform(Object src, MuleEvent event) throws TransformerMessagingException
src - the data to transformevent - the event currently being processedTransformerMessagingException - if a error occurs transforming the data or if the
expected returnClass isn't the same as the transformed dataObject transform(Object src, String encoding, MuleEvent event) throws TransformerMessagingException
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 processedTransformerMessagingException - if a error occurs transforming the data or if the
expected returnClass isn't the same as the transformed dataCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.