public interface MessageTransformer extends Transformer
ReactiveProcessor.ProcessingType| Modifier and Type | Method and Description |
|---|---|
Object |
transform(Object src,
Charset encoding,
Event event)
Transforms the supplied data and returns the result
|
Object |
transform(Object src,
Event event)
Transforms the supplied data and returns the result
|
getProcessingType, getReturnDataType, getSourceDataTypes, isAcceptNull, isIgnoreBadInput, isSourceDataTypeSupported, setReturnDataType, transform, transformsetMuleContextObject transform(Object src, Event event) throws MessageTransformerException
src - the data to transformevent - the event currently being processedMessageTransformerException - if a error occurs transforming the data or if the expected returnClass isn't the same as
the transformed dataObject transform(Object src, Charset encoding, Event event) throws MessageTransformerException
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 processedMessageTransformerException - if a error occurs transforming the data or if the expected returnClass isn't the same as
the transformed dataCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.