|
|||||||||
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
public abstract class OncRpcReplyMessage
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 | |
---|---|
int |
acceptStatus
Acceptance status in case this reply was sent in response to an accepted call ( OncRpcReplyStatus.ONCRPC_MSG_ACCEPTED ). |
int |
authStatus
Contains the reason for authentification failure in the case of OncRpcRejectStatus.ONCRPC_AUTH_ERROR . |
int |
highVersion
Highest supported version in case of OncRpcRejectStatus.ONCRPC_RPC_MISMATCH and
OncRpcAcceptStatus.ONCRPC_PROG_MISMATCH . |
int |
lowVersion
Lowest supported version in case of OncRpcRejectStatus.ONCRPC_RPC_MISMATCH and
OncRpcAcceptStatus.ONCRPC_PROG_MISMATCH . |
int |
rejectStatus
Rejectance status in case this reply sent in response to a rejected call ( OncRpcReplyStatus.ONCRPC_MSG_DENIED ). |
int |
replyStatus
The reply status of the reply message. |
static int |
UNUSED_PARAMETER
Dummy, which can be used to identify unused parameters when constructing OncRpcReplyMessage objects. |
Fields inherited from class org.acplt.oncrpc.OncRpcMessage |
---|
messageId, messageType |
Constructor Summary | |
---|---|
OncRpcReplyMessage()
Initializes a new OncRpcReplyMessage object to represent
an invalid state. |
|
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. |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int replyStatus
OncRpcReplyStatus.ONCRPC_MSG_ACCEPTED
or
OncRpcReplyStatus.ONCRPC_MSG_DENIED
. Depending on the value
of this field, other fields of an instance of
OncRpcReplyMessage
become important.
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.
public int acceptStatus
OncRpcReplyStatus.ONCRPC_MSG_ACCEPTED
). This
field can take any of the values defined in the
OncRpcAcceptStatus
interface.
Note that even for accepted calls that only in the case of
OncRpcAcceptStatus.ONCRPC_SUCCESS
result data will follow
the reply message header.
public int rejectStatus
OncRpcReplyStatus.ONCRPC_MSG_DENIED
). This
field can take any of the values defined in the
OncRpcRejectStatus
interface.
public int lowVersion
OncRpcRejectStatus.ONCRPC_RPC_MISMATCH
and
OncRpcAcceptStatus.ONCRPC_PROG_MISMATCH
.
public int highVersion
OncRpcRejectStatus.ONCRPC_RPC_MISMATCH
and
OncRpcAcceptStatus.ONCRPC_PROG_MISMATCH
.
public int authStatus
OncRpcRejectStatus.ONCRPC_AUTH_ERROR
.
public static final int UNUSED_PARAMETER
OncRpcReplyMessage
objects.
Constructor Detail |
---|
public OncRpcReplyMessage()
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.
public OncRpcReplyMessage(OncRpcCallMessage call, int replyStatus, int acceptStatus, int rejectStatus, int lowVersion, int highVersion, int authStatus)
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
.
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
).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |