public class MessageBuilderDecorator extends Object
This class provides a friendly API to build a Message
| Constructor and Description |
|---|
MessageBuilderDecorator() |
MessageBuilderDecorator(org.mule.runtime.api.message.Message originalMessage) |
public MessageBuilderDecorator()
public MessageBuilderDecorator(org.mule.runtime.api.message.Message originalMessage)
public MessageBuilderDecorator withInboundProperty(String key, Serializable value)
public MessageBuilderDecorator withInboundProperty(String key, Object value, String mediaType, String charset)
public MessageBuilderDecorator withInboundProperties(Map<String,org.mule.runtime.api.metadata.TypedValue<Serializable>> properties)
public MessageBuilderDecorator withOutboundProperty(String key, Serializable value)
public MessageBuilderDecorator withOutboundProperty(String key, Object value, String mediaType, String charset)
public MessageBuilderDecorator withOutboundProperties(Map<String,org.mule.runtime.api.metadata.TypedValue<Serializable>> properties)
public MessageBuilderDecorator withInboundAttachment(String key, DataHandler value)
public MessageBuilderDecorator withInboundAttachments(Map<String,DataHandler> attachments)
public MessageBuilderDecorator withOutboundAttachment(String key, DataHandler value)
public MessageBuilderDecorator withOutboundAttachments(Map<String,DataHandler> attachments)
public MessageBuilderDecorator withPayload(Object payload)
public MessageBuilderDecorator withMediaType(org.mule.runtime.api.metadata.MediaType mediaType)
public MessageBuilderDecorator withAttributes(Object attributes)
public MessageBuilderDecorator withAttributes(org.mule.runtime.api.metadata.TypedValue attributes)
public org.mule.runtime.api.message.Message build()
Copyright © 2018. All rights reserved.