public static interface Message.Builder extends Message.PayloadBuilder
| Modifier and Type | Method and Description |
|---|---|
Message.Builder |
attributes(Attributes value)
Populates the builder from the given
value. |
Message |
build()
Builds a new
Message with the values set in this builder. |
Message.Builder |
mediaType(MediaType mediaType)
|
collectionPayload, collectionPayload, nullPayload, payload, streamPayloadMessage.Builder mediaType(MediaType mediaType)
mediaType - the mediaType to setNullPointerException - if the mediaType is nullMessage.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 value is nullCopyright © 2016 MuleSoft, Inc.. All rights reserved.