org.mobicents.slee.resource.lab.message
Interface Message


public interface 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.

Author:
Michael Maretzke

Field Summary
static int ANY
           
static int END
           
static int INIT
           
 
Method Summary
 java.lang.String getCommand()
          Access the message's command string.
 int getCommandId()
          Access the command string's identifier.
 java.lang.String getId()
          Access the message's unique identifier.
 

Field Detail

INIT

static final int INIT
See Also:
Constant Field Values

ANY

static final int ANY
See Also:
Constant Field Values

END

static final int END
See Also:
Constant Field Values
Method Detail

getId

java.lang.String getId()
Access the message's unique identifier.

Returns:
the message's identifier

getCommand

java.lang.String getCommand()
Access the message's command string.

Returns:
the command string

getCommandId

int getCommandId()
Access the command string's identifier. The integer representation of the command string. May be either Message.INIT, Message.ANY or Message.END.



Copyright © 2009. All Rights Reserved.