public class NfsReaddirResponse extends NfsResponseBase
Procedure READDIR retrieves a variable number of entries, in sequence, from a directory and returns the name and file identifier for each, with information to allow the client to request additional directory entries in a subsequent READDIR request.
_xid| Constructor and Description |
|---|
NfsReaddirResponse(int nfsVersion)
Creates the response, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
NfsReaddirResponse(java.util.List<NfsDirectoryEntry> entries,
int nfsVersion)
Creates the response, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
| Modifier and Type | Method and Description |
|---|---|
long |
getCookie() |
long |
getCookieverf() |
java.util.List<NfsDirectoryEntry> |
getEntries() |
boolean |
isEof() |
void |
unmarshalling(Xdr xdr)
Load this structure from the response data, as specified by RFC 1831
(https://tools.ietf.org/html/rfc1831).
|
getAttributes, getFileHandle, getState, makeNfsGetAttributes, makeNfsGetAttributes, stateIsOk, toString, unmarshallingAttributes, unmarshallingAttributes, unmarshallingFileHandle, unmarshallingFileHandlegetAcceptStatus, getDirection, getRejectStatus, getReplyStatus, getXidpublic NfsReaddirResponse(int nfsVersion)
Procedure READDIR retrieves a variable number of entries, in sequence, from a directory and returns the name and file identifier for each, with information to allow the client to request additional directory entries in a subsequent READDIR request.
nfsVersion - The NFS version number. This is ignored for now, as only NFSv3
is supported, but is included to allow future support for
other versions.public NfsReaddirResponse(java.util.List<NfsDirectoryEntry> entries, int nfsVersion)
Procedure READDIR retrieves a variable number of entries, in sequence, from a directory and returns the name and file identifier for each, with information to allow the client to request additional directory entries in a subsequent READDIR request.
entries - A list in which to store the entries.nfsVersion - The NFS version number. This is ignored for now, as only NFSv3
is supported, but is included to allow future support for
other versions.public void unmarshalling(Xdr xdr) throws RpcException
RpcResponseunmarshalling in class NfsResponseBasexdr - The xdr response data.RpcExceptionpublic long getCookie()
cookie from the server, for use in the next
request.public long getCookieverf()
cookieverf from the server, for use in the next
request.public java.util.List<NfsDirectoryEntry> getEntries()
public boolean isEof()
true if the end of file is reached.false otherwise.