public static interface MuleMessage.Builder extends MuleMessage.PayloadBuilder
| Modifier and Type | Method and Description |
|---|---|
MuleMessage.Builder |
attributes(Attributes value)
Populates the builder from the given
value. |
MuleMessage |
build()
Builds a new
MuleMessage with the values set in this builder. |
MuleMessage.Builder |
mediaType(MediaType mediaType)
Sets the
MediaType for the MuleMessage to be built. |
collectionPayload, payloadMuleMessage.Builder mediaType(MediaType mediaType)
mediaType - the mediaType to setNullPointerException - if the payload is nullMuleMessage.Builder attributes(Attributes value)
value.
This method will get the type, mimeType and encoding from the given value
according to its concrete type.
value - an object instance.NullPointerException - if the payload is nullMuleMessage build()
MuleMessage with the values set in this builder.MuleMessage.Copyright © 2016 MuleSoft, Inc.. All rights reserved.