|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--PaP.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.Object |
objectMessage
Used when the message is not a string. |
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 |
|
Field Detail |
public java.lang.String roleSessionId
public java.lang.String messageType
public java.lang.String[] message
public java.lang.Object objectMessage
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 typeMethod Detail |
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String toString(ApplicationMessage obj)
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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |