Package org.acplt.oncrpc
Class OncRpcMessage
java.lang.Object
org.acplt.oncrpc.OncRpcMessage
- Direct Known Subclasses:
OncRpcCallMessage
,OncRpcReplyMessage
The
OncRpcMessage
class is an abstract superclass for all
the message types ONC/RPC defines (well, an overwhelming count of two).
The only things common to all ONC/RPC messages are a message identifier
and the message type. All other things do not come in until derived
classes are introduced.- Version:
- $Revision: 1.2 $ $Date: 2003/08/14 07:56:37 $ $State: Exp $ $Locker: $
- Author:
- Harald Albrecht
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
The message id is used to identify matching ONC/RPC calls and replies.int
The kind of ONC/RPC message, which can be either a call or a reply. -
Constructor Summary
ConstructorsConstructorDescriptionOncRpcMessage
(int messageId) Constructs a newOncRpcMessage
object with default values: a given message type and no particular message identifier. -
Method Summary
-
Field Details
-
messageId
public int messageIdThe message id is used to identify matching ONC/RPC calls and replies. This is typically choosen by the communication partner sending a request. The matching reply then must have the same message identifier, so the receiver can match calls and replies. -
messageType
public int messageTypeThe kind of ONC/RPC message, which can be either a call or a reply. Can be one of the constants defined inOncRpcMessageType
.- See Also:
-
-
Constructor Details
-
OncRpcMessage
public OncRpcMessage(int messageId) Constructs a newOncRpcMessage
object with default values: a given message type and no particular message identifier.
-