Class Files


  • public class Files
    extends Object
    • Constructor Detail

      • Files

        public Files()
    • Method Detail

      • getFiles

        public javax.ws.rs.core.Response getFiles()
        Lists all files and folders stored on the server.
        Returns:
        a JSON response containing file and folder names
      • getFile

        public javax.ws.rs.core.Response getFile​(String path)
        Gets the contents of a file.
        Parameters:
        path - the path to the file whose contents should be returned
        Returns:
        the contents of the specified file
      • deleteFile

        public javax.ws.rs.core.Response deleteFile​(String path)
        Deletes a file.
        Parameters:
        path - the path to the file to be deleted
        Returns:
        an empty response