public static interface MuleMessage.PayloadBuilder
| Modifier and Type | Method and Description |
|---|---|
MuleMessage.Builder |
collectionPayload(Collection payload,
Class<?> itemType)
Sets the collection payload for the
MuleMessage to be built. |
MuleMessage.Builder |
payload(Object payload)
Sets the payload for the
MuleMessage to be built. |
MuleMessage.Builder payload(Object payload)
MuleMessage to be built.
If a DataType has previously been set it's type will be updated to reflect the type of the
new payload class while preserving it's MediaType, unless the new payload type defines
it's own MediaType in which case this will be used instead. See
DataTypeBuilder.fromObject(Object)payload - the message payloadNullPointerException - if the payload is nullMuleMessage.Builder collectionPayload(Collection payload, Class<?> itemType)
MuleMessage to be built.
If a DataType has previously been set it's type will be updated to reflect the type of the
new payload class while preserving it's MediaType, unless the new payload type defines
it's own MediaType in which case this will be used instead. See
DataTypeBuilder.fromObject(Object)payload - the collection payloaditemType - the collection item typeNullPointerException - if the payload is nullCopyright © 2016 MuleSoft, Inc.. All rights reserved.