| Package | Description |
|---|---|
| org.mule.munit.common.event |
| Modifier and Type | Method and Description |
|---|---|
EventBuilder |
EventBuilder.addInboundAttachment(String key,
DataHandler value)
Prepares an attachment with the given key and value to be sent in the product.
|
EventBuilder |
EventBuilder.addInboundProperty(String key,
Serializable value)
Prepares a property with the given key and value to be sent as an inbound property of the product.
|
EventBuilder |
EventBuilder.addInboundProperty(String key,
Serializable value,
String mediaType,
String charset)
Prepares a property with the given key and value to be sent as an inbound property of the product.
|
EventBuilder |
EventBuilder.addOutboundAttachment(String key,
DataHandler value)
Prepares an attachment with the given key and value to be sent in the product.
|
EventBuilder |
EventBuilder.addOutboundProperty(String key,
Serializable value)
Prepares a property with the given key and value to be sent as an outbound property of the product.
|
EventBuilder |
EventBuilder.addOutboundProperty(String key,
Serializable value,
String mediaType,
String charset)
Prepares a property with the given key and value to be sent as an outbound property of the product.
|
EventBuilder |
EventBuilder.addSessionProperty(String key,
Object value)
Prepares a property with the given key and value to be sent as a session property of the product.
|
EventBuilder |
EventBuilder.addSessionProperty(String key,
Object value,
String mediaType,
String charset)
Prepares a property with the given key and value to be sent as a session property of the product.
|
EventBuilder |
EventBuilder.addVariable(String key,
Object value)
Prepares a flow variable with the given key and value to be set in the product.
|
EventBuilder |
EventBuilder.addVariable(String key,
Object value,
String mediaType,
String charset)
Prepares a flow variable with the given key and value to be set in the product.
|
EventBuilder |
EventBuilder.clearSessionProperties()
Clears the session properties map
|
EventBuilder |
EventBuilder.withAttributes(Object attributes)
Sets the
Message.getAttributes() value of the produced message |
EventBuilder |
EventBuilder.withAttributes(Object attributes,
String mediaType,
String charset)
Prepares a flow variable with the given key and value to be set in the product.
|
EventBuilder |
EventBuilder.withError(org.mule.runtime.api.message.ErrorType errorType,
Throwable exception)
Prepares the error to be added to the event
|
EventBuilder |
EventBuilder.withGroupCorrelation(org.mule.runtime.core.api.message.GroupCorrelation correlation)
Configures the product event to have the provided
correlation. |
EventBuilder |
EventBuilder.withInboundAttachments(Map<String,DataHandler> inboundAttachments)
Prepares the outbound attachments with the given map.
|
EventBuilder |
EventBuilder.withInboundProperties(Map<String,Serializable> inboundProperties)
Prepares the inbound properties with the given map.
|
EventBuilder |
EventBuilder.withMediaType(org.mule.runtime.api.metadata.MediaType mediaType)
Prepares the given data to be sent as the mediaType of the payload of the
Event to the configured flow. |
EventBuilder |
EventBuilder.withOutboundAttachments(Map<String,DataHandler> outboundAttachments)
Prepares the outbound attachments with the given map.
|
EventBuilder |
EventBuilder.withOutboundProperties(Map<String,Serializable> outboundProperties)
Prepares the outbound properties with the given map.
|
EventBuilder |
EventBuilder.withPayload(Object payload)
Prepares the given data to be sent as the payload of the product.
|
EventBuilder |
EventBuilder.withReplyToHandler(org.mule.runtime.core.privileged.connector.ReplyToHandler replyToHandler)
Configures the product event to have the provided
ReplyToHandler. |
EventBuilder |
EventBuilder.withSessionProperties(Map<String,org.mule.runtime.api.metadata.TypedValue<Serializable>> sessionProperties)
Prepares the session properties with the given map.
|
EventBuilder |
EventBuilder.withSourceCorrelationId(String sourceCorrelationId)
Configures the product event to have the provided
sourceCorrelationId. |
EventBuilder |
EventBuilder.withVariables(Map<String,Object> variables)
Prepares the flow variables with the given map.
|
Copyright © 2019. All rights reserved.