Class NfsMkdirRequest
java.lang.Object
com.emc.ecs.nfsclient.rpc.RpcRequest
com.emc.ecs.nfsclient.nfs.NfsRequestBase
com.emc.ecs.nfsclient.nfs.NfsMkdirRequest
- All Implemented Interfaces:
NfsRequest
- Direct Known Subclasses:
Nfs3MkdirRequest
The request, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).
Procedure MKDIR creates a new subdirectory.
-
Field Summary
Fields inherited from class RpcRequest
CHARSET -
Constructor Summary
ConstructorsConstructorDescriptionNfsMkdirRequest(byte[] fileHandle, String name, NfsSetAttributes attributes, Credential credential, int nfsVersion) Creates the request, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813). -
Method Summary
Modifier and TypeMethodDescriptionvoidmarshalling(Xdr xdr) Writes the RPC call header and authentication credentials to the XDR buffer.toString()Methods inherited from class NfsRequestBase
getErrorMessage, getFileHandle, getIpKey, startToStringMethods inherited from class RpcRequest
cloneFileHandle, isUsePrivilegedPort, setUsePrivilegedPort, trimFileName
-
Constructor Details
-
NfsMkdirRequest
public NfsMkdirRequest(byte[] fileHandle, String name, NfsSetAttributes attributes, Credential credential, int nfsVersion) throws FileNotFoundException Creates the request, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).Procedure MKDIR creates a new subdirectory.
- Parameters:
fileHandle- The file handle for the directory in which the subdirectory is to be created.name- The name that is to be associated with the created subdirectory.attributes- The initial attributes for the subdirectory.credential- The credential used for RPC authentication.nfsVersion- The NFS version number- Throws:
FileNotFoundException
-
-
Method Details
-
marshalling
Writes the RPC call header and authentication credentials to the XDR buffer.- Specified by:
marshallingin interfaceNfsRequest- Overrides:
marshallingin classNfsRequestBase- Parameters:
xdr- the Xdr to be sent.
-
toString
-