public abstract class NfsResponseBase extends RpcResponse
_xid| Constructor and Description |
|---|
NfsResponseBase()
Create the base class object.
|
| Modifier and Type | Method and Description |
|---|---|
NfsGetAttributes |
getAttributes() |
byte[] |
getFileHandle() |
int |
getState() |
protected static NfsGetAttributes |
makeNfsGetAttributes(Xdr xdr)
Create the object if it is there, return null if it is not.
|
protected static NfsGetAttributes |
makeNfsGetAttributes(Xdr xdr,
boolean force)
Create the object if it is there, or skip the existence check if
force is true. |
boolean |
stateIsOk()
Check the state returned in the response.
|
java.lang.String |
toString() |
void |
unmarshalling(Xdr xdr)
Load this structure from the response data, as specified by RFC 1831
(https://tools.ietf.org/html/rfc1831).
|
protected void |
unmarshallingAttributes(Xdr xdr)
Unmarshall the object if it is there.
|
protected void |
unmarshallingAttributes(Xdr xdr,
boolean force)
Unmarshall the object if it is there, or skip the existence check if
force is true. |
protected void |
unmarshallingFileHandle(Xdr xdr)
Unmarshall the object if it is there.
|
protected void |
unmarshallingFileHandle(Xdr xdr,
boolean force)
Unmarshall the object if it is there, or skip the existence check if
force is true. |
getAcceptStatus, getDirection, getRejectStatus, getReplyStatus, getXidpublic void unmarshalling(Xdr xdr) throws RpcException
RpcResponseunmarshalling in class RpcResponsexdr - The xdr response data.RpcExceptionpublic int getState()
public java.lang.String toString()
toString in class java.lang.Objectpublic final NfsGetAttributes getAttributes()
public final byte[] getFileHandle()
public boolean stateIsOk()
protected void unmarshallingAttributes(Xdr xdr)
xdr - protected void unmarshallingAttributes(Xdr xdr, boolean force)
force is true. Convenience method for use in
subclasses.xdr - force - do not check whether it is thereprotected void unmarshallingFileHandle(Xdr xdr)
xdr - protected void unmarshallingFileHandle(Xdr xdr, boolean force)
force is true. Convenience method for use in
subclasses.xdr - force - protected static NfsGetAttributes makeNfsGetAttributes(Xdr xdr)
xdr - protected static NfsGetAttributes makeNfsGetAttributes(Xdr xdr, boolean force)
force is true. Convenience method for use in
subclasses.xdr - force - do not check whether it is there