|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnathan.middleware.Message
public class Message
The messages to be sent in between the client and the server. Messages objects are sent between the cleint and server to commincate the method that should be invoked on an object and to return the value of the invocation to the client.
Constructor Summary | |
---|---|
Message()
Creates a new instance of Message |
|
Message(int messageType)
Creates a new instance of Message. |
|
Message(int aMessageType,
int aRequestID,
RemoteObjectReference aRor,
java.lang.String aMethodName,
java.util.Vector aArguments)
Creates a new instance of Message to be passed |
Method Summary | |
---|---|
boolean |
compareArgs(java.util.Vector otherArgs)
Compare if to sets of arguments are equal. |
java.util.Vector |
getArguments()
Get the arguments for the remote method invocation |
int |
getMessageID()
Get the message ID of the message. |
int |
getMessageType()
Get the type of message. |
java.lang.String |
getMethodName()
Get the name of the method to be called. |
RemoteObjectReference |
getRemoteObjectReference()
Get the remote object reference. |
void |
setArguments(java.util.Vector aArgs)
Set the arguments to be passed to the remote method. |
void |
setMessageID(int messageID)
Sets the Message ID |
void |
setMessageType(int aMessageType)
Set the message type. |
void |
setMethodName(java.lang.String aMethodName)
Set the method name to be called remotely. |
void |
setRemoteObjectReference(RemoteObjectReference aRor)
Set the RemoteObjectReference. |
java.lang.String |
toString()
Returns a string representation of the message sent |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Message()
public Message(int messageType)
messageType
- The type of message to be sent.public Message(int aMessageType, int aRequestID, RemoteObjectReference aRor, java.lang.String aMethodName, java.util.Vector aArguments)
aMessageType
- the type of message to be sentaRequestID
- aRor
- the remote object referenceaMethodName
- the name of the method to be calledaArguments
- the arguments to be passed to the methodMethod Detail |
---|
public int getMessageType()
public void setMessageType(int aMessageType)
aMessageType
- The type of message to be sent.public int getMessageID()
public void setMessageID(int messageID)
messageID
- public RemoteObjectReference getRemoteObjectReference()
public void setRemoteObjectReference(RemoteObjectReference aRor)
aRor
- The RemoteObjectReferencepublic java.lang.String getMethodName()
public void setMethodName(java.lang.String aMethodName)
aMethodName
- The method name to be called.public java.util.Vector getArguments()
public void setArguments(java.util.Vector aArgs)
aArgs
- A vector of arguments to be passed to the
remote method.public boolean compareArgs(java.util.Vector otherArgs)
otherArgs
- A vector of arguments to be compared.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |