Interface FileRESTService
-
public interface FileRESTServiceService interface for file operations via REST
Copyright 2018 (C) by Martin Ganserer
- Version:
- 1.0.0
- Author:
- Martin Ganserer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddownloadFile(String pathOnServer, File targetFile)Download a fileStringuploadFile(File file)Upload a file
-
-
-
Method Detail
-
downloadFile
void downloadFile(String pathOnServer, File targetFile) throws IOException
Download a file- Parameters:
pathOnServer- the fully qualified path of the file on the remote systemtargetFile- the local target file- Throws:
IOException- if the download operation has failed
-
uploadFile
String uploadFile(File file) throws FileNotFoundException
Upload a file- Parameters:
file- the local file to be uploaded- Returns:
- the fully qualified path of the file created on the server
- Throws:
RemoteOperationException- if the upload operation has failedFileNotFoundException- if the specified local file could not be found
-
-