Package protocolP2P

Class FileList


  • public class FileList
    extends Payload
    Representation of payload for list response.
    Version:
    1.0
    Author:
    Louis Royer, Flavien Haas, JS Auge
    • Constructor Summary

      Constructors 
      Constructor Description
      FileList​(java.lang.String[] fileList)
      Constructor (typically used by the server) with an ArrayList parameter containing filenames.
    • Constructor Detail

      • FileList

        public FileList​(java.lang.String[] fileList)
                 throws InternalError
        Constructor (typically used by the server) with an ArrayList parameter containing filenames.
        Parameters:
        fileList - a list of files. Must not be empty.
        Throws:
        InternalError
    • Method Detail

      • getFileList

        public java.lang.String[] getFileList()
        fileList getter.
        Returns:
        fileList