public class OncRpcClientReplyMessage extends OncRpcReplyMessage
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.
Modifier and Type | Field and Description |
---|---|
protected OncRpcClientAuth |
auth
Client-side authentication protocol handling object to use when
decoding the reply message.
|
acceptStatus, authStatus, highVersion, lowVersion, rejectStatus, replyStatus, UNUSED_PARAMETER
messageId, messageType
Constructor and Description |
---|
OncRpcClientReplyMessage(OncRpcClientAuth auth)
Initializes a new RPC reply message object to represent
an invalid state
OncRpcReplyMessage . |
Modifier and Type | Method and Description |
---|---|
OncRpcException |
newException()
Return an appropriate exception object according to the state this
reply message header object is in.
|
boolean |
successfullyAccepted()
Check whether this
OncRpcReplyMessage represents an
accepted and successfully executed remote procedure call. |
void |
xdrDecode(XdrDecodingStream xdr)
Decodes -- that is: deserializes -- a ONC/RPC message header object
from a XDR stream.
|
protected OncRpcClientAuth auth
public OncRpcClientReplyMessage(OncRpcClientAuth auth)
OncRpcReplyMessage
. 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.auth
- Client-side authentication protocol handling object which
is to be used when decoding the verifier data contained in the reply.public boolean successfullyAccepted()
OncRpcReplyMessage
represents an
accepted and successfully executed remote procedure call.true
if remote procedure call was accepted and
successfully executed.public OncRpcException newException()
OncRpcException
or a subclass
thereof.public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException
xdr
- An instance of class XdrDecodingStream
.OncRpcException
- if an ONC/RPC error occurs.IOException
- if an I/O error occurs.Copyright © 2022. All rights reserved.