|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--MicroTAPAS.ApplicationMessage
This class defines the generic message interface between actors. Used in RoleSessionAction
| Field Summary | |
java.lang.String[] |
message
The set of message parameters that follows the message type |
java.lang.String |
messageType
The message type identifier |
java.lang.String |
roleSessionId
The role session the message is attached to |
| Constructor Summary | |
ApplicationMessage(java.lang.String pMessageType)
Create a new message instance with no parameters |
|
ApplicationMessage(java.lang.String pMessageType,
java.lang.String[] pMessage)
Create a new message instance with parameters |
|
| Method Summary | |
java.lang.String |
toString()
Simple utility to convert all data field values into one String for easy Debug purposes |
static java.lang.String |
toString(ApplicationMessage obj)
Simple utility to convert all data field values into one String for easy Debug purposes |
static boolean |
validate(ApplicationMessage am,
int npar)
Validate number of parameters for the message |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public java.lang.String roleSessionId
public java.lang.String messageType
public java.lang.String[] message
| Constructor Detail |
public ApplicationMessage(java.lang.String pMessageType,
java.lang.String[] pMessage)
pMessageType - The message typepMessage - The set of parameters that follows the messagepublic ApplicationMessage(java.lang.String pMessageType)
pMessageType - The message type| Method Detail |
public java.lang.String toString()
toString in class java.lang.Objectpublic static java.lang.String toString(ApplicationMessage obj)
obj - Object to convert - if existing
public static boolean validate(ApplicationMessage am,
int npar)
am - The application message to validatenpar - The number of parameters the message should contain
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||