|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.acplt.oncrpc.OncRpcMessage org.acplt.oncrpc.OncRpcReplyMessage org.acplt.oncrpc.OncRpcClientReplyMessage
public class OncRpcClientReplyMessage
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.
Field Summary | |
---|---|
protected OncRpcClientAuth |
auth
Client-side authentication protocol handling object to use when decoding the reply message. |
Fields inherited from class org.acplt.oncrpc.OncRpcReplyMessage |
---|
acceptStatus, authStatus, highVersion, lowVersion, rejectStatus, replyStatus, UNUSED_PARAMETER |
Fields inherited from class org.acplt.oncrpc.OncRpcMessage |
---|
messageId, messageType |
Constructor Summary | |
---|---|
OncRpcClientReplyMessage(OncRpcClientAuth auth)
Initializes a new OncRpcReplyMessage object to represent
an invalid state. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected OncRpcClientAuth auth
Constructor Detail |
---|
public OncRpcClientReplyMessage(OncRpcClientAuth auth)
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.
auth
- Client-side authentication protocol handling object which
is to be used when decoding the verifier data contained in the reply.Method Detail |
---|
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, java.io.IOException
OncRpcException
- if an ONC/RPC error occurs.
java.io.IOException
- if an I/O error occurs.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |