This is an old revision of the document!
MessageInterpreter class
The MessageInterpreter class can be used to obtain the notification or service name and parameters from a message sent by Aware IM to an external party. The following public methods can be used:
public DataObject [] addNotification (EntityIdentifier receiver, INotification notification)
This method constructs a message representing a notification
Parameters
receiver | this should always be null |
notification | the notification to be sent |
Returns
an array of DataObjects representing the message that can be sent to AwareIM.
public DataObject [] addServiceRequest (String componentName, String serviceName, Object [] parameters)
This method constructs a message representing a service request
Parameters
componentName | this should always be null |
serviceName | the name of the service to call (the service with this name must be exposed by the service provider). If a message is sent to AwareIM the name of the service is the name of one of the methods exposed by the IExecutionEngineServices interface (see JavaDoc API) |
parameters | the parameters of the service as an array of IEntity objects or null if the service does not require any parameters. If a message is sent to AwareIM the parameters must correspond to the methods exposed by the IExecutionEngineServices interface (see JavaDoc API) |
Returns
An array of DataObjects representing the message that can be sent to AwareIM.