@Deprecated
public class UploadService
extends java.lang.Object
TransferManager
替换限定符和类型 | 类和说明 |
---|---|
static class |
UploadService.EncryptionType
已过时。
|
static interface |
UploadService.OnGetHttpTaskMetrics
已过时。
|
static interface |
UploadService.OnSignatureListener
已过时。
|
static interface |
UploadService.OnUploadInfoListener
已过时。
|
static class |
UploadService.ResumeData
已过时。
|
static class |
UploadService.UploadServiceResult
已过时。
|
构造器和说明 |
---|
UploadService(CosXmlSimpleService cosXmlService,
java.lang.String bucket,
java.lang.String cosPath,
java.lang.String srcPath,
long sliceSize,
android.content.Context context)
已过时。
|
UploadService(CosXmlSimpleService cosXmlService,
UploadService.ResumeData resumeData)
已过时。
|
限定符和类型 | 方法和说明 |
---|---|
void |
abort(CosXmlResultListener cosXmlResultListener)
已过时。
|
void |
isSupportAccelerate(boolean isSupportAccelerate)
已过时。
|
UploadService.ResumeData |
pause()
已过时。
|
CosXmlResult |
resume(UploadService.ResumeData resumeData)
已过时。
|
void |
setCOSServerSideEncryptionType(UploadService.EncryptionType encryptionType)
已过时。
|
void |
setNeedMd5(boolean isNeed)
已过时。
|
void |
setOnGetHttpTaskMetrics(UploadService.OnGetHttpTaskMetrics onGetHttpTaskMetrics)
已过时。
|
void |
setOnSignatureListener(UploadService.OnSignatureListener onSignatureListener)
已过时。
|
void |
setOnUploadInfoListener(UploadService.OnUploadInfoListener onUploadInfoListener)
已过时。
|
void |
setProgressListener(CosXmlProgressListener cosXmlProgressListener)
已过时。
|
void |
setRequestHeaders(java.lang.String key,
java.lang.String value)
已过时。
|
void |
setSign(long startTime,
long endTime)
已过时。
|
UploadService.UploadServiceResult |
upload()
已过时。
|
public UploadService(CosXmlSimpleService cosXmlService, UploadService.ResumeData resumeData)
public UploadService(CosXmlSimpleService cosXmlService, java.lang.String bucket, java.lang.String cosPath, java.lang.String srcPath, long sliceSize, android.content.Context context)
public void setSign(long startTime, long endTime)
public void setOnSignatureListener(UploadService.OnSignatureListener onSignatureListener)
public void setOnGetHttpTaskMetrics(UploadService.OnGetHttpTaskMetrics onGetHttpTaskMetrics)
public void setRequestHeaders(java.lang.String key, java.lang.String value)
public void setNeedMd5(boolean isNeed)
public void setCOSServerSideEncryptionType(UploadService.EncryptionType encryptionType)
public void isSupportAccelerate(boolean isSupportAccelerate)
public void setProgressListener(CosXmlProgressListener cosXmlProgressListener)
public void setOnUploadInfoListener(UploadService.OnUploadInfoListener onUploadInfoListener)
public UploadService.UploadServiceResult upload() throws CosXmlClientException, CosXmlServiceException
public CosXmlResult resume(UploadService.ResumeData resumeData) throws CosXmlServiceException, CosXmlClientException
public UploadService.ResumeData pause()
public void abort(CosXmlResultListener cosXmlResultListener)