Skip to content
German Escobar edited this page Jun 19, 2013 · 14 revisions

Mokai is a messaging gateway server that routes messages between endpoints (e.g. from applications to mobile operators or between applications) without having to write complex rules or routes. It supports a variety of mechanisms and protocols including HTTP, Mail, SMPP and JMS (Java Message Service), among others.

Built-in Connectors

Name Description
Jetty Connector Receives messages through HTTP.
HTTP Connector Sends messages through HTTP.
SMPP Connector Sends and receives messages using SMPP protocol.
SMPP Server Connector Allows SMPP clients to connect, send and receive messages
Mail Processor Sends Email messages.
Mail Receiver Receives Email messages.
IronMQ Processor Sends messages to an IronMQ queue.
IronMQ Receiver Receive messages from an IronMQ queue.

Built-in Acceptors

Name Description
Accept All Acceptor Accepts all the messages.
Exact Match Acceptor Accepts a message if a specified field matches a value exactly.
Regular Expression Acceptor Accepts a message if a specified field matches a regular expression.

If you are defining multiple acceptors inside a connector read Multiple Acceptors to learn what is the default behavior and how to change it.

Built-in Actions

Name Description
Add Prefix Action Prepends a string to the value of a field/property.
Add Spaces Action Fills the value of a field with spaces until the value is of the specified length.
Add Suffix Action Appends a string to the value of a field/property.
Concat Action Concats multiple fields into a new field using a separator.
Copy Action Copies the value of a property into another property of a message.
Replace Action Replaces strings on a field. You can enter a exact match or a regular expression for each string that you want to replace.
Remove Action Removes a field/property of a message.
Update Action Adds or updates the value of a field/property from a message.