public class MuleEventTransformer extends Object
| Constructor and Description |
|---|
MuleEventTransformer() |
| Modifier and Type | Method and Description |
|---|---|
static org.mule.tooling.event.model.MessageModel |
buildMessageModel(org.mule.runtime.api.message.Message message,
long maxPayloadSize,
long maxCollectionSize,
org.mule.runtime.api.el.ExpressionLanguage expressionLanguage,
Charset defaultEncoding,
boolean sampleData)
Creates a
MessageModel from a Message including its payload and attributes. |
static org.mule.tooling.event.model.EventModel |
getEventModel(org.mule.runtime.api.event.Event event,
org.mule.runtime.api.el.ExpressionLanguage expressionLanguage,
long maxPayloadSize,
long maxCollectionSize,
Charset defaultEncoding)
Creates the
EventModel from an Event. |
public static org.mule.tooling.event.model.EventModel getEventModel(org.mule.runtime.api.event.Event event,
org.mule.runtime.api.el.ExpressionLanguage expressionLanguage,
long maxPayloadSize,
long maxCollectionSize,
Charset defaultEncoding)
Creates the EventModel from an Event. This model represents the Event, Message, Attributes and Error related
to a Mule Runtime Event.
It also has a similar representation with TypedValueModel and DataTypeModel so clients of the notification
could retrieve the content of the Message, Attributes or even the Error associated with an Event and show it a GUI.
Mule Messages, Mule Collection of Messages and POJOs, their content is going to represented as application/DW.
event - event to convert to event model.expressionLanguage - ExpressionLanguage to transform POJOs.maxPayloadSize - max size for payload/attributes.maxCollectionSize - max size for DW collections.defaultEncoding - default character encoding to use when not defined by the data type.EventModelpublic static org.mule.tooling.event.model.MessageModel buildMessageModel(org.mule.runtime.api.message.Message message,
long maxPayloadSize,
long maxCollectionSize,
org.mule.runtime.api.el.ExpressionLanguage expressionLanguage,
Charset defaultEncoding,
boolean sampleData)
MessageModel from a Message including its payload and attributes.message - message to convert to message model.maxPayloadSize - max size for payload/attributes.maxCollectionSize - max size for DW collections.expressionLanguage - ExpressionLanguage to transform POJOs.defaultEncoding - default character encoding to use when not defined by the data type.sampleData - indicates whether the transformation is to obtain sample data or not.MessageModelCopyright © 2022 MuleSoft, Inc.. All rights reserved.