public class ResumableUploadRequest extends MultipartUploadRequest
The resumable upload request class definition
Resumable upload is implemented by the OSS multipart upload with local checkpoint information. When the network condition in mobile device is poor, resumable upload is the best to use. It will retry the failed parts as long as you retry with the same parameters (the upload file path, target object and the part size) and the checkpoint information is stored.
OSSRequest.CRC64Config
bucketName, callbackParam, callbackVars, metadata, objectKey, partSize, progressCallback, uploadFilePath, uploadId, uploadUri
构造器和说明 |
---|
ResumableUploadRequest(java.lang.String bucketName,
java.lang.String objectKey,
java.lang.String uploadFilePath)
Constructor
|
ResumableUploadRequest(java.lang.String bucketName,
java.lang.String objectKey,
java.lang.String uploadFilePath,
ObjectMetadata metadata)
Constructor
|
ResumableUploadRequest(java.lang.String bucketName,
java.lang.String objectKey,
java.lang.String uploadFilePath,
ObjectMetadata metadata,
java.lang.String recordDirectory)
Constructor
|
ResumableUploadRequest(java.lang.String bucketName,
java.lang.String objectKey,
java.lang.String uploadFilePath,
java.lang.String recordDirectory)
Constructor
|
ResumableUploadRequest(java.lang.String bucketName,
java.lang.String objectKey,
Uri uploadUri)
Constructor
|
ResumableUploadRequest(java.lang.String bucketName,
java.lang.String objectKey,
Uri uploadUri,
ObjectMetadata metadata)
Constructor
|
ResumableUploadRequest(java.lang.String bucketName,
java.lang.String objectKey,
Uri uploadUri,
ObjectMetadata metadata,
java.lang.String recordDirectory)
Constructor
|
ResumableUploadRequest(java.lang.String bucketName,
java.lang.String objectKey,
Uri uploadUri,
java.lang.String recordDirectory)
Constructor
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.Boolean |
deleteUploadOnCancelling() |
java.lang.String |
getRecordDirectory() |
void |
setDeleteUploadOnCancelling(java.lang.Boolean deleteUploadOnCancelling) |
void |
setRecordDirectory(java.lang.String recordDirectory)
Sets the checkpoint files' directory (the directory must exist and is absolute directory path)
|
getBucketName, getCallbackParam, getCallbackVars, getMetadata, getObjectKey, getPartSize, getProgressCallback, getUploadFilePath, getUploadId, getUploadUri, setBucketName, setCallbackParam, setCallbackVars, setMetadata, setObjectKey, setPartSize, setProgressCallback, setUploadFilePath, setUploadId, setUploadUri
getCRC64, isAuthorizationRequired, setCRC64, setIsAuthorizationRequired
public ResumableUploadRequest(java.lang.String bucketName, java.lang.String objectKey, java.lang.String uploadFilePath)
bucketName
- The target object's bucket nameobjectKey
- The target object's keyuploadFilePath
- The local path of the file to uploadpublic ResumableUploadRequest(java.lang.String bucketName, java.lang.String objectKey, java.lang.String uploadFilePath, ObjectMetadata metadata)
bucketName
- The target object's bucket nameobjectKey
- The target object's keyuploadFilePath
- The local path of the file to uploadmetadata
- The metadata of the target objectpublic ResumableUploadRequest(java.lang.String bucketName, java.lang.String objectKey, java.lang.String uploadFilePath, java.lang.String recordDirectory)
bucketName
- The target object's bucket nameobjectKey
- The target object's keyuploadFilePath
- The local path of the file to uploadrecordDirectory
- The checkpoint files' directory. Here it needs to be the absolute local path.public ResumableUploadRequest(java.lang.String bucketName, java.lang.String objectKey, java.lang.String uploadFilePath, ObjectMetadata metadata, java.lang.String recordDirectory)
bucketName
- The target object's bucket nameobjectKey
- The target object's keyuploadFilePath
- The local path of the file to uploadmetadata
- The metadata of the target objectrecordDirectory
- The checkpoint files' directory. Here it needs to be the absolute local path.public ResumableUploadRequest(java.lang.String bucketName, java.lang.String objectKey, Uri uploadUri)
bucketName
- The target object's bucket nameobjectKey
- The target object's keyuploadUri
- The uri of the file to uploadpublic ResumableUploadRequest(java.lang.String bucketName, java.lang.String objectKey, Uri uploadUri, ObjectMetadata metadata)
bucketName
- The target object's bucket nameobjectKey
- The target object's keyuploadUri
- The uri of the file to uploadmetadata
- The metadata of the target objectpublic ResumableUploadRequest(java.lang.String bucketName, java.lang.String objectKey, Uri uploadUri, java.lang.String recordDirectory)
bucketName
- The target object's bucket nameobjectKey
- The target object's keyuploadUri
- The uri of the file to uploadrecordDirectory
- The checkpoint files' directory. Here it needs to be the absolute local path.public ResumableUploadRequest(java.lang.String bucketName, java.lang.String objectKey, Uri uploadUri, ObjectMetadata metadata, java.lang.String recordDirectory)
bucketName
- The target object's bucket nameobjectKey
- The target object's keyuploadUri
- The uri of the file to uploadmetadata
- The metadata of the target objectrecordDirectory
- The checkpoint files' directory. Here it needs to be the absolute local path.public java.lang.String getRecordDirectory()
public void setRecordDirectory(java.lang.String recordDirectory)
recordDirectory
- the checkpoint files' directorypublic java.lang.Boolean deleteUploadOnCancelling()
public void setDeleteUploadOnCancelling(java.lang.Boolean deleteUploadOnCancelling)