Interface MorpheusSynchronousFileCopyService
public interface MorpheusSynchronousFileCopyService
-
Method Summary
Modifier and TypeMethodDescriptioncopyToServer(ComputeServer server, String fileName, String filePath, InputStream sourceStream, Long contentLength) Copy a file to the target server.copyToServer(ComputeServer server, String fileName, String filePath, InputStream sourceStream, Long contentLength, Long timeout) Copy a file to the target server.copyToServer(ComputeServer server, String fileName, String filePath, InputStream sourceStream, Long contentLength, Long timeout, Boolean autoExpand) Copy a file to the target server.Expires AND deletes the temporary file content of a file copy urlgenerateUrl(FileCopyRequest request) Create a url to copy a file to the target server.generateUrl(String fileName, User user, InputStream sourceStream, Long contentLength) Deprecated.generateUrl(String fileName, User user, InputStream sourceStream, Long contentLength, Long timeout) Deprecated.As of 1.3.2, usegenerateUrl(FileCopyRequest)instead.generateUrl(String fileName, User user, InputStream sourceStream, Long contentLength, Long timeout, Boolean autoExpand) Deprecated.As of 1.3.2, usegenerateUrl(FileCopyRequest)instead.generateUrl(String fileName, User user, InputStream sourceStream, Long contentLength, Long timeout, Boolean autoExpand, String contentType) Deprecated.As of 1.3.2, usegenerateUrl(FileCopyRequest)instead.
-
Method Details
-
copyToServer
ServiceResponse copyToServer(ComputeServer server, String fileName, String filePath, InputStream sourceStream, Long contentLength) Copy a file to the target server.- Parameters:
server- The target serverfileName- name of the copied file for the file copy request URL.filePath- path on the server, including the file name (/some/path/file.txt), to place the file copy.sourceStream- sourceInputStreamto copy to the servercontentLength- size of the file to be copied- Returns:
ServiceResponsecontaining the success status of the copy operation
-
copyToServer
ServiceResponse copyToServer(ComputeServer server, String fileName, String filePath, InputStream sourceStream, Long contentLength, Long timeout) Copy a file to the target server.- Parameters:
server- The target serverfileName- name of the copied file for the file copy request URL.filePath- path on the server, including the file name (/some/path/file.txt), to place the file copy.sourceStream- sourceInputStreamto copy to the servercontentLength- size of the file to be copiedtimeout- max timeout to initialize the copy operation- Returns:
ServiceResponsecontaining the success status of the copy operation
-
copyToServer
ServiceResponse copyToServer(ComputeServer server, String fileName, String filePath, InputStream sourceStream, Long contentLength, Long timeout, Boolean autoExpand) Copy a file to the target server.- Parameters:
server- The target serverfileName- name of the copied file for the file copy request URL.filePath- path on the server, including the file name (/some/path/file.txt), to place the file copy.sourceStream- sourceInputStreamto copy to the servercontentLength- size of the file to be copiedtimeout- max timeout to initialize the copy operationautoExpand- automatically expand .tar.gz compressed files during upload- Returns:
ServiceResponsecontaining the success status of the copy operation
-
generateUrl
Create a url to copy a file to the target server.- Parameters:
request-FileCopyRequestcontaining the file copy parameters- Returns:
ServiceResponsecontaining the success status of the copy operation- Since:
- 1.3.2
-
generateUrl
@Deprecated(since="1.3.2") ServiceResponse generateUrl(String fileName, User user, InputStream sourceStream, Long contentLength, Long timeout, Boolean autoExpand, String contentType) Deprecated.As of 1.3.2, usegenerateUrl(FileCopyRequest)instead.Create a url to copy a file to the target server.- Parameters:
fileName- name of the copied file for the file copy request URL.sourceStream- sourceInputStreamto copy to the servercontentLength- size of the file to be copiedtimeout- max timeout to initialize the copy operationautoExpand- automatically expand .tar.gz compressed files during uploadcontentType- override the application/octet-stream content type when serving the file- Returns:
ServiceResponsecontaining the success status of the copy operation
-
generateUrl
@Deprecated(since="1.3.2") ServiceResponse generateUrl(String fileName, User user, InputStream sourceStream, Long contentLength, Long timeout, Boolean autoExpand) Deprecated.As of 1.3.2, usegenerateUrl(FileCopyRequest)instead.Create a url to copy a file to the target server.- Parameters:
fileName- name of the copied file for the file copy request URL.sourceStream- sourceInputStreamto copy to the servercontentLength- size of the file to be copiedtimeout- max timeout to initialize the copy operationautoExpand- automatically expand .tar.gz compressed files during upload- Returns:
ServiceResponsecontaining the success status of the copy operation
-
generateUrl
@Deprecated(since="1.3.2") ServiceResponse generateUrl(String fileName, User user, InputStream sourceStream, Long contentLength, Long timeout) Deprecated.As of 1.3.2, usegenerateUrl(FileCopyRequest)instead.Create a url to copy a file to the target server.- Parameters:
fileName- name of the copied file for the file copy request URL.sourceStream- sourceInputStreamto copy to the servercontentLength- size of the file to be copiedtimeout- max timeout to initialize the copy operation- Returns:
ServiceResponsecontaining the success status of the copy operation
-
generateUrl
@Deprecated(since="1.3.2") ServiceResponse generateUrl(String fileName, User user, InputStream sourceStream, Long contentLength) Deprecated.As of 1.3.2, usegenerateUrl(FileCopyRequest)instead.Create a url to copy a file to the target server.- Parameters:
fileName- name of the copied file for the file copy request URL.sourceStream- sourceInputStreamto copy to the servercontentLength- size of the file to be copied- Returns:
ServiceResponsecontaining the success status of the copy operation
-
deleteUrl
Expires AND deletes the temporary file content of a file copy url- Parameters:
fileCopyUrl- the original URL submitted- Returns:
ServiceResponsecontaining the success status of the copy operation
-
generateUrl(FileCopyRequest)instead.