org.mobicents.slee.resource.lab.message
Class MessageImpl
java.lang.Object
org.mobicents.slee.resource.lab.message.MessageImpl
- All Implemented Interfaces:
- org.mobicents.slee.resource.lab.message.Message
public class MessageImpl
- extends java.lang.Object
- implements org.mobicents.slee.resource.lab.message.Message
The Message represents the means of communication in the RAFStack resource
adaptor defined protocol. It abstracts the underlying protocol information
by wrapping the protocol information into Java objects.
One protocol message of the defined protocl contains two elements:
An identifier (id)
A command string (command)
Message follows the value object pattern and can only be constructed by
a factory object.
The MessageImpl object implements the Message interface and is the concrete
implementation class of the more abstract interface which is the only visible
interface for the SBB.
- Author:
- Michael Maretzke
| Fields inherited from interface org.mobicents.slee.resource.lab.message.Message |
ANY, END, INIT |
|
Method Summary |
java.lang.String |
getCommand()
|
int |
getCommandId()
|
java.lang.String |
getId()
|
static org.mobicents.slee.resource.lab.message.Message |
getInstance(java.lang.String id,
java.lang.String command)
The factory method to generate a new instance of Message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static org.mobicents.slee.resource.lab.message.Message getInstance(java.lang.String id,
java.lang.String command)
- The factory method to generate a new instance of Message.
- Parameters:
id - the id of the underlying protocol messagecommand - the command of the underlying protocol message
- Returns:
- a newly created Message object
getId
public java.lang.String getId()
- Specified by:
getId in interface org.mobicents.slee.resource.lab.message.Message
getCommand
public java.lang.String getCommand()
- Specified by:
getCommand in interface org.mobicents.slee.resource.lab.message.Message
getCommandId
public int getCommandId()
- Specified by:
getCommandId in interface org.mobicents.slee.resource.lab.message.Message
Copyright © 2008. All Rights Reserved.