Interface FileRESTService
public interface FileRESTService
Service interface for file operations via REST
Copyright 2018 (C) by Martin Ganserer
- Version:
- 1.0.0
- Author:
- Martin Ganserer
-
Method Summary
Modifier and TypeMethodDescriptionvoiddownloadFile(String pathOnServer, File targetFile) Download a fileuploadFile(File file) Upload a file
-
Method Details
-
downloadFile
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
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
-