A mediator is the basic message processing unit and a fundamental part the ESB profile. A mediator can take a message, carry out some predefined actions on it, and output the modified message. For example, the Clone mediator splits a message into several clones, the Send mediator sends the messages, and the Aggregate mediator collects and merges the responses before sending them back to the client.
...
The WSO2 EI mediator catalog
Category | Name | Description |
|---|---|---|
| Core | Call | Invoke a service in non blocking synchronous manner |
Sends a message | ||
Moves the message from the In flow to the Out flow, skipping all remaining configuration in the In flow | ||
Inserts a reference to a sequence | ||
| Respond | Stops processing on the message and sends it back to the client | |
Drops a message | ||
| Call Template | Constructs a sequence by passing values into a sequence template | |
Enriches a message | ||
Sets or remove properties associated with the message | ||
Logs a message | ||
Filter | Filters a message using XPath, if-else kind of logic | |
| Validate | Validates XML messages against a specified schema. | |
Filters messages using XPath, switch logic | ||
Transform | Performs XSLT transformations on the XML payload | |
| FastXSLT | Performs XSLT transformations on the message stream | |
Modifies and rewrites URLs or URL fragments | ||
| XQuery | Performs XQuery transformation | |
Sets or removes SOAP headers | ||
Fault (also called Makefault) | Create SOAP Faults | |
| PayloadFactory | Transforms or replaces message content in between the client and the back-end server | |
| JSON Transform Mediator | Applying XML to JSON transformations to individual artifacts instead of applying global synapse settings. | |
Advanced | Evaluates messages based on whether the same message came to the ESB profile | |
| ForEach | Splits a message into a number of different messages by finding matching elements in an XPath expression of the original message. | |
Clones a message | ||
Stores messages in a predefined message store | ||
Splits a message | ||
Combines a message | ||
Blocks web services calls | ||
Executes a set of mediators transactionally | ||
Limits the number of messages | ||
Writes data to database | ||
Retrieves information from database | ||
| EJB | Calls an external Enterprise JavaBean(EJB) and stores the result in the message payload or in a message context property. | |
Executes rules | ||
| Builder | Builds the actual SOAP message, from a message, which is coming into the ESB profile through the Binary Relay. | |
Evaluates user actions against a XACML policy | ||
2-legged OAuth support | ||
| Smooks | Used to apply lightweight transformations on messages in an efficient manner. | |
| Data Mapper | Converts and transforms one data format to another, or changes the structure of the data in a message. | |
| Extension | ||
Creates and executes a custom mediator | ||
Executes a mediator written in Scripting language | ||
Creates a mediator managed by Spring | ||
| Agent | Publish Event | Constructs events and publishes them to different systems such as WSO2 BAM/DAS/CEP/SP via event sinks. |