public abstract class NfsRequestBase extends RpcRequest implements NfsRequest
CHARSET| Constructor and Description |
|---|
NfsRequestBase(int serviceProgram,
int serviceVersion,
int serviceProcedure,
Credential credential,
byte[] fileHandle)
Creates the basic request structure.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getErrorMessage() |
byte[] |
getFileHandle() |
byte[] |
getIpKey() |
void |
marshalling(Xdr xdr)
Transfer data to an Xdr object for RPC use.
|
protected java.lang.StringBuilder |
startToString(java.lang.String requestlabel)
Start a StringBuilder for use in toString() (for logging).
|
cloneFileHandle, isUsePrivilegedPort, setUsePrivilegedPort, trimFileNamepublic NfsRequestBase(int serviceProgram,
int serviceVersion,
int serviceProcedure,
Credential credential,
byte[] fileHandle)
throws java.io.FileNotFoundException
serviceProgram - The program number of the service.serviceVersion - The version number of the service.serviceProcedure - The service procedure number to be called.credential - The credential.fileHandle - The primary file handle, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
java.io.FileNotFoundExceptionpublic final java.lang.String getErrorMessage()
getErrorMessage in class RpcRequestpublic final byte[] getFileHandle()
public final byte[] getIpKey()
public void marshalling(Xdr xdr)
NfsRequestmarshalling in interface NfsRequestmarshalling in class RpcRequestxdr - the Xdr to be sent.protected final java.lang.StringBuilder startToString(java.lang.String requestlabel)
RpcRequeststartToString in class RpcRequest