public interface MuleMessage extends Serializable
| Modifier and Type | Interface and Description |
|---|---|
static interface |
MuleMessage.Builder |
static interface |
MuleMessage.CollectionBuilder |
static interface |
MuleMessage.PayloadBuilder |
| Modifier and Type | Method and Description |
|---|---|
static MuleMessage.PayloadBuilder |
builder()
Provides a builder to create
MuleMessage objects. |
static MuleMessage.Builder |
builder(MuleMessage message)
Provides a builder to create
MuleMessage objects based on an existing MuleMessage instance. |
Attributes |
getAttributes()
Gets the attributes associated with the MuleMessage.
|
DataType |
getDataType()
Returns the data type (if any) associated with the message's payload.
|
Object |
getPayload() |
static MuleMessage |
of(Object payload)
Create a new
instance with the given payload. |
static MuleMessage.PayloadBuilder builder()
MuleMessage objects.MuleMessage.Builder.static MuleMessage.Builder builder(MuleMessage message)
MuleMessage objects based on an existing MuleMessage instance.message - existing MuleMessage to use as a template to create a new MuleMessage.Builder instance.MuleMessage.Builder based on the template message provided.NullPointerException - if the message is nullstatic MuleMessage of(Object payload)
instance with the given payload.payload - the message payloadNullPointerException - if the payload is nullObject getPayload()
Attributes getAttributes()
Attributes attributes object is specifc to
the connector that was the source of the current message and is used for obtaining message properties or headers
if applicable plus additional information that provides context for the current message such as file size, file
name and last modified date for FILE, and origin ip address, query parameters etc. for HTTP.
If there are no attributes associated with the current message, for example if the source of the message was not a connector, then the attributes with be null.
DataType getDataType()
Copyright © 2016 MuleSoft, Inc.. All rights reserved.