Class NfsReaddirplusResponse

Direct Known Subclasses:
Nfs3ReaddirplusResponse

public class NfsReaddirplusResponse extends NfsResponseBase
The response, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).

Procedure READDIRPLUS retrieves a variable number of entries from a file system directory and returns complete information about each along with information to allow the client to request additional directory entries in a subsequent READDIRPLUS. READDIRPLUS differs from READDIR only in the amount of information returned for each entry. In READDIR, each entry returns the filename and the fileid. In READDIRPLUS, each entry returns the name, the fileid, attributes (including the fileid), and file handle.

  • Constructor Details

    • NfsReaddirplusResponse

      public NfsReaddirplusResponse(int nfsVersion)
      Creates the response, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).

      Procedure READDIRPLUS retrieves a variable number of entries from a file system directory and returns complete information about each along with information to allow the client to request additional directory entries in a subsequent READDIRPLUS. READDIRPLUS differs from READDIR only in the amount of information returned for each entry. In READDIR, each entry returns the filename and the fileid. In READDIRPLUS, each entry returns the name, the fileid, attributes (including the fileid), and file handle.

      Parameters:
      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.
    • NfsReaddirplusResponse

      public NfsReaddirplusResponse(List<NfsDirectoryPlusEntry> entries, int nfsVersion)
      Creates the response, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).

      Procedure READDIRPLUS retrieves a variable number of entries from a file system directory and returns complete information about each along with information to allow the client to request additional directory entries in a subsequent READDIRPLUS. READDIRPLUS differs from READDIR only in the amount of information returned for each entry. In READDIR, each entry returns the filename and the fileid. In READDIRPLUS, each entry returns the name, the fileid, attributes (including the fileid), and file handle.

      Parameters:
      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.
  • Method Details

    • unmarshalling

      public void unmarshalling(Xdr xdr) throws RpcException
      Load this structure from the response data, as specified by RFC 1831 (https://tools.ietf.org/html/rfc1831).
      Overrides:
      unmarshalling in class NfsResponseBase
      Parameters:
      xdr - The xdr response data.
      Throws:
      RpcException
    • getCookie

      public long getCookie()
      Returns the last cookie from the server, for use in the next request.
    • getCookieverf

      public long getCookieverf()
      Returns the cookieverf from the server, for use in the next request.
    • getEntries

      public List<NfsDirectoryPlusEntry> getEntries()
      Returns the list of entries.
    • isEof

      public boolean isEof()
      Returns
      • true if the end of file is reached.
      • false otherwise.
      .