public final class PayloadTargetReturnDelegate extends AbstractReturnDelegate
AbstractReturnDelegate which sets the operation output as a variable which key is taken from the
target field.
The original message payload is not modified.
AbstractReturnDelegate.ConnectedInputStreamWrappermuleContext| Constructor and Description |
|---|
PayloadTargetReturnDelegate(String target,
org.mule.runtime.api.meta.model.ComponentModel componentModel,
CursorProviderFactory cursorProviderFactory,
MuleContext muleContext) |
| Modifier and Type | Method and Description |
|---|---|
CoreEvent |
asReturnValue(Object value,
ExecutionContextAdapter operationContext)
Adapts the
value into an CoreEvent |
resolveMediaType, toMessagepublic PayloadTargetReturnDelegate(String target, org.mule.runtime.api.meta.model.ComponentModel componentModel, CursorProviderFactory cursorProviderFactory, MuleContext muleContext)
target - the name of the variable in which the output message will be setpublic CoreEvent asReturnValue(Object value, ExecutionContextAdapter operationContext)
ReturnDelegatevalue into an CoreEventvalue - the value to be returnedoperationContext - the ExecutionContextAdapter on which the operation was executedCoreEvent carrying the operation's resultCopyright © 2003–2025 MuleSoft, Inc.. All rights reserved.