org.mobicents.slee.resource.lab.message
Class MessageParserImpl
java.lang.Object
org.mobicents.slee.resource.lab.message.MessageParserImpl
- All Implemented Interfaces:
- MessageParser
public class MessageParserImpl
- extends java.lang.Object
- implements MessageParser
The RAFMessageParser accepts strings and split them according to predefined rules
into separate elements and creates value objects of type Message.
The RAFStack stack supports a simple message format / protocol. It contains
an id and a command. Normally, the message format looks like:
id command
e.g.
100 INIT
The message format is embedded in a "protocol".
The very first message in a "dialog" is the "100 INIT" command. It initiates
the "dialog". Here, the "dialog" for id 100 is initiated.
The next message in a valid "dialog" is any number of "100 ANY" commands. They
continue the "dialog". Here, the "dialog" for id 100 is continued.
The terminating message is the "100 END" command. It terminates the "dialog".
Here the "dialog" for id 100 ends.
The RAFMessageParser implements the simple message protocol above.
- Author:
- Michael Maretzke
|
Method Summary |
org.mobicents.slee.resource.lab.message.Message |
parse(java.lang.String message)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageParserImpl
public MessageParserImpl()
parse
public org.mobicents.slee.resource.lab.message.Message parse(java.lang.String message)
throws IncorrectRequestFormatException
- Specified by:
parse in interface MessageParser
- Throws:
IncorrectRequestFormatException
Copyright © 2008. All Rights Reserved.