Class OncRpcReplyMessage

java.lang.Object
org.acplt.oncrpc.OncRpcMessage
org.acplt.oncrpc.OncRpcReplyMessage
Direct Known Subclasses:
OncRpcClientReplyMessage, OncRpcServerReplyMessage

public abstract class OncRpcReplyMessage extends OncRpcMessage
The OncRpcReplyMessage class represents an ONC/RPC reply message as defined by ONC/RPC in RFC 1831. Such messages are sent back by ONC/RPC to servers to clients and contain (in case of real success) the result of a remote procedure call.

The decision to define only one single class for the accepted and rejected replies was driven by the motivation not to use polymorphism and thus have to upcast and downcast references all the time.

The derived classes are only provided for convinience on the server side.

Version:
$Revision: 1.2 $ $Date: 2003/08/14 07:56:59 $ $State: Exp $ $Locker: $
Author:
Harald Albrecht
  • Field Details

  • Constructor Details

    • OncRpcReplyMessage

      public OncRpcReplyMessage()
      Initializes a new OncRpcReplyMessage object to represent an invalid state. This default constructor should only be used if in the next step the real state of the reply message is immediately decoded from a XDR stream.
    • OncRpcReplyMessage

      public OncRpcReplyMessage(OncRpcCallMessage call, int replyStatus, int acceptStatus, int rejectStatus, int lowVersion, int highVersion, int authStatus)
      Initializes a new OncRpcReplyMessage object and initializes its complete state from the given parameters.

      Note that depending on the reply, acceptance and rejectance status some parameters are unused and can be specified as UNUSED_PARAMETER.

      Parameters:
      call - The ONC/RPC call this reply message corresponds to.
      replyStatus - The reply status (see OncRpcReplyStatus).
      acceptStatus - The acceptance state (see OncRpcAcceptStatus).
      rejectStatus - The rejectance state (see OncRpcRejectStatus).
      lowVersion - lowest supported version.
      highVersion - highest supported version.
      authStatus - The autentication state (see OncRpcAuthStatus).