The MessageParsingService provides a mechanism for components to retrieve loaded message definitions, and to parse messages. The parsing service provides an internal cache of parsed messages, thereby allowing Rhapsody to avoid parsing messages multiple times when this is not necessary.
Method | Description |
---|---|
|
Retrieves a loaded message definition ready for use, from the specified definition. Parameters:
Exceptions:
|
|
Retrieves a loaded message definition ready for use, from the specified definition. Parameters:
Exceptions:
|
|
Retrieves the message format factory for this environment. Message formats allow messages to be parsed and processed without the filters or communication points knowing how the messages are parsed. |
|
Method returns the parsed message body to the service, allowing the message parsing service to utilize its cache. Returning the parsed message bodies to the cache greatly improves the performance of Rhapsody. If any changes were made to the parsed body, the changes are parsed-out to the persistence store, updating the message object itself. This method should not be called if changes have been made to the message context while those changes should not be saved. However, it should be called when no changes are made (or if the changes should be saved) as this allows reuse of the parsed bodies. Parameters:
Exceptions:
|
|
Marks this message as being most recently parsed using the specified message format with the specified message name. This means that the specified message format is then preferred when the message next needs to be parsed and no specific message format is provided. This method does not need to be called if the MessageFormat was actually used to parse the message as it is set automatically in that case. It is primarily intended for filters that modify the message body and are aware of what the new message format is (for example, the Mapper filter). If the message name is null, then the existing message name in the Parameters:
Exceptions:
|