public final class MessageUtils extends Object
messages| Modifier and Type | Method and Description |
|---|---|
static org.mule.runtime.api.message.Message |
toMessage(org.mule.runtime.extension.api.runtime.operation.Result result)
Transforms the given
result into a Message |
static org.mule.runtime.api.message.Message |
toMessage(org.mule.runtime.extension.api.runtime.operation.Result result,
CursorProviderFactory cursorProviderFactory,
Event event)
Transforms the given
result into a Message. |
static org.mule.runtime.api.message.Message |
toMessage(org.mule.runtime.extension.api.runtime.operation.Result result,
org.mule.runtime.api.metadata.MediaType mediaType)
Transforms the given
result into a Message |
static org.mule.runtime.api.message.Message |
toMessage(org.mule.runtime.extension.api.runtime.operation.Result result,
org.mule.runtime.api.metadata.MediaType mediaType,
CursorProviderFactory cursorProviderFactory,
Event event)
Transforms the given
result into a Message. |
static Collection<org.mule.runtime.api.message.Message> |
toMessageCollection(Collection<org.mule.runtime.extension.api.runtime.operation.Result> results,
CursorProviderFactory cursorProviderFactory,
Event event)
Transforms the given
results into a similar collection of Message
objects |
static Iterator<org.mule.runtime.api.message.Message> |
toMessageIterator(Iterator<org.mule.runtime.extension.api.runtime.operation.Result> results,
CursorProviderFactory cursorProviderFactory,
Event event)
Transforms the given
results into a similar collection of Message objects |
public static org.mule.runtime.api.message.Message toMessage(org.mule.runtime.extension.api.runtime.operation.Result result)
result into a Messageresult - a Result objectMessagepublic static org.mule.runtime.api.message.Message toMessage(org.mule.runtime.extension.api.runtime.operation.Result result,
org.mule.runtime.api.metadata.MediaType mediaType)
result into a Messageresult - a Result objectmediaType - the MediaType for the message payload, overrides the described in the resultMessagepublic static org.mule.runtime.api.message.Message toMessage(org.mule.runtime.extension.api.runtime.operation.Result result,
CursorProviderFactory cursorProviderFactory,
Event event)
result into a Message.result - a Result objectcursorProviderFactory - Factory that in case of finding a value which can create a cursor (eg.: InputStream
or Iterator), will create a CursorProviderevent - Used for the case where a CursorProvider is created, register the one in it.Messagepublic static org.mule.runtime.api.message.Message toMessage(org.mule.runtime.extension.api.runtime.operation.Result result,
org.mule.runtime.api.metadata.MediaType mediaType,
CursorProviderFactory cursorProviderFactory,
Event event)
result into a Message.result - a Result objectmediaType - the MediaType for the message payload, overrides the described in the resultcursorProviderFactory - Factory that in case of finding a value which can create a cursor (eg.: InputStream
or Iterator), will create a CursorProviderevent - Used for the case where a CursorProvider is created, register the one in it.Messagepublic static Collection<org.mule.runtime.api.message.Message> toMessageCollection(Collection<org.mule.runtime.extension.api.runtime.operation.Result> results, CursorProviderFactory cursorProviderFactory, Event event)
results into a similar collection of Message
objectsresults - a collection of Result itemscursorProviderFactory - the CursorProviderFactory used to handle streaming cursorsevent - the Event which originated the results being transformedMessagepublic static Iterator<org.mule.runtime.api.message.Message> toMessageIterator(Iterator<org.mule.runtime.extension.api.runtime.operation.Result> results, CursorProviderFactory cursorProviderFactory, Event event)
results into a similar collection of Message objectsresults - a collection of Result itemscursorProviderFactory - the CursorProviderFactory used to handle streaming cursorsevent - the Event which originated the results being transformedMessageCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.