public class NfsRemoveRequest extends NfsRequestBase
Procedure REMOVE removes (deletes) an entry from a directory. If the entry in the directory was the last reference to the corresponding file system object, the object may be destroyed.
CHARSET| Constructor and Description |
|---|
NfsRemoveRequest(byte[] fileHandle,
java.lang.String name,
Credential credential,
int nfsVersion)
Creates the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
| Modifier and Type | Method and Description |
|---|---|
void |
marshalling(Xdr xdr)
Transfer data to an Xdr object for RPC use.
|
java.lang.String |
toString() |
getErrorMessage, getFileHandle, getIpKey, startToStringcloneFileHandle, isUsePrivilegedPort, setUsePrivilegedPort, trimFileNamepublic NfsRemoveRequest(byte[] fileHandle,
java.lang.String name,
Credential credential,
int nfsVersion)
throws java.io.FileNotFoundException
Procedure REMOVE removes (deletes) an entry from a directory. If the entry in the directory was the last reference to the corresponding file system object, the object may be destroyed.
fileHandle - The file handle for the directory from which the entry is to
be removed.name - The name of the entry to be removed.credential - The credential used for RPC authentication.nfsVersion - The NFS version numberjava.io.FileNotFoundExceptionpublic void marshalling(Xdr xdr)
NfsRequestmarshalling in interface NfsRequestmarshalling in class NfsRequestBasexdr - the Xdr to be sent.public java.lang.String toString()
toString in class java.lang.Object