构造器和说明 |
---|
OSSClient(Context context,
OSSCredentialProvider credentialProvider,
ClientConfiguration conf) |
OSSClient(Context context,
java.lang.String endpoint,
OSSCredentialProvider credentialProvider)
Creates a
OSSClient instance. |
OSSClient(Context context,
java.lang.String endpoint,
OSSCredentialProvider credentialProvider,
ClientConfiguration conf)
Creates a
OSSClient instance. |
public OSSClient(Context context, java.lang.String endpoint, OSSCredentialProvider credentialProvider)
OSSClient
instance.context
- android application's application contextendpoint
- OSS endpoint, check out:http://help.aliyun.com/document_detail/oss/user_guide/endpoint_region.htmlcredentialProvider
- credential provider instancepublic OSSClient(Context context, java.lang.String endpoint, OSSCredentialProvider credentialProvider, ClientConfiguration conf)
OSSClient
instance.context
- aandroid application's application contextendpoint
- OSS endpoint, check out:http://help.aliyun.com/document_detail/oss/user_guide/endpoint_region.htmlcredentialProvider
- credential provider instanceconf
- Client side configurationpublic OSSClient(Context context, OSSCredentialProvider credentialProvider, ClientConfiguration conf)
public OSSAsyncTask<ListBucketsResult> asyncListBuckets(ListBucketsRequest request, OSSCompletedCallback<ListBucketsRequest,ListBucketsResult> completedCallback)
OSS
asyncListBuckets
在接口中 OSS
public ListBucketsResult listBuckets(ListBucketsRequest request) throws ClientException, ServiceException
OSS
listBuckets
在接口中 OSS
ClientException
ServiceException
public OSSAsyncTask<CreateBucketResult> asyncCreateBucket(CreateBucketRequest request, OSSCompletedCallback<CreateBucketRequest,CreateBucketResult> completedCallback)
OSS
asyncCreateBucket
在接口中 OSS
public CreateBucketResult createBucket(CreateBucketRequest request) throws ClientException, ServiceException
OSS
createBucket
在接口中 OSS
ClientException
ServiceException
public OSSAsyncTask<DeleteBucketResult> asyncDeleteBucket(DeleteBucketRequest request, OSSCompletedCallback<DeleteBucketRequest,DeleteBucketResult> completedCallback)
OSS
asyncDeleteBucket
在接口中 OSS
public DeleteBucketResult deleteBucket(DeleteBucketRequest request) throws ClientException, ServiceException
OSS
deleteBucket
在接口中 OSS
ClientException
ServiceException
public OSSAsyncTask<GetBucketInfoResult> asyncGetBucketInfo(GetBucketInfoRequest request, OSSCompletedCallback<GetBucketInfoRequest,GetBucketInfoResult> completedCallback)
OSS
asyncGetBucketInfo
在接口中 OSS
request
- A GetBucketInfoRequest
instance which specifies the bucket
name.completedCallback
- A OSSCompletedCallback
instance that specifies callback functionspublic GetBucketInfoResult getBucketInfo(GetBucketInfoRequest request) throws ClientException, ServiceException
OSS
getBucketInfo
在接口中 OSS
request
- A GetBucketInfoRequest
instance which specifies the bucket
name.GetBucketInfoResult
instance.ClientException
- OSS Client side exception.ServiceException
- OSS Server side exception.public OSSAsyncTask<GetBucketACLResult> asyncGetBucketACL(GetBucketACLRequest request, OSSCompletedCallback<GetBucketACLRequest,GetBucketACLResult> completedCallback)
OSS
asyncGetBucketACL
在接口中 OSS
public GetBucketACLResult getBucketACL(GetBucketACLRequest request) throws ClientException, ServiceException
OSS
getBucketACL
在接口中 OSS
ClientException
ServiceException
public OSSAsyncTask<PutBucketRefererResult> asyncPutBucketReferer(PutBucketRefererRequest request, OSSCompletedCallback<PutBucketRefererRequest,PutBucketRefererResult> completedCallback)
OSS
asyncPutBucketReferer
在接口中 OSS
public PutBucketRefererResult putBucketReferer(PutBucketRefererRequest request) throws ClientException, ServiceException
OSS
putBucketReferer
在接口中 OSS
ClientException
ServiceException
public GetBucketRefererResult getBucketReferer(GetBucketRefererRequest request) throws ClientException, ServiceException
OSS
getBucketReferer
在接口中 OSS
ClientException
ServiceException
public OSSAsyncTask<GetBucketRefererResult> asyncGetBucketReferer(GetBucketRefererRequest request, OSSCompletedCallback<GetBucketRefererRequest,GetBucketRefererResult> completedCallback)
OSS
asyncGetBucketReferer
在接口中 OSS
public DeleteBucketLoggingResult deleteBucketLogging(DeleteBucketLoggingRequest request) throws ClientException, ServiceException
OSS
deleteBucketLogging
在接口中 OSS
ClientException
ServiceException
public OSSAsyncTask<DeleteBucketLoggingResult> asyncDeleteBucketLogging(DeleteBucketLoggingRequest request, OSSCompletedCallback<DeleteBucketLoggingRequest,DeleteBucketLoggingResult> completedCallback)
OSS
asyncDeleteBucketLogging
在接口中 OSS
public PutBucketLoggingResult putBucketLogging(PutBucketLoggingRequest request) throws ClientException, ServiceException
OSS
putBucketLogging
在接口中 OSS
ClientException
ServiceException
public OSSAsyncTask<PutBucketLoggingResult> asyncPutBucketLogging(PutBucketLoggingRequest request, OSSCompletedCallback<PutBucketLoggingRequest,PutBucketLoggingResult> completedCallback)
OSS
asyncPutBucketLogging
在接口中 OSS
public GetBucketLoggingResult getBucketLogging(GetBucketLoggingRequest request) throws ClientException, ServiceException
OSS
getBucketLogging
在接口中 OSS
ClientException
ServiceException
public OSSAsyncTask<GetBucketLoggingResult> asyncGetBucketLogging(GetBucketLoggingRequest request, OSSCompletedCallback<GetBucketLoggingRequest,GetBucketLoggingResult> completedCallback)
OSS
asyncGetBucketLogging
在接口中 OSS
public PutBucketLifecycleResult putBucketLifecycle(PutBucketLifecycleRequest request) throws ClientException, ServiceException
OSS
putBucketLifecycle
在接口中 OSS
ClientException
ServiceException
public OSSAsyncTask<PutBucketLifecycleResult> asyncPutBucketLifecycle(PutBucketLifecycleRequest request, OSSCompletedCallback<PutBucketLifecycleRequest,PutBucketLifecycleResult> completedCallback)
OSS
asyncPutBucketLifecycle
在接口中 OSS
public GetBucketLifecycleResult getBucketLifecycle(GetBucketLifecycleRequest request) throws ClientException, ServiceException
OSS
getBucketLifecycle
在接口中 OSS
ClientException
ServiceException
public OSSAsyncTask<GetBucketLifecycleResult> asyncGetBucketLifecycle(GetBucketLifecycleRequest request, OSSCompletedCallback<GetBucketLifecycleRequest,GetBucketLifecycleResult> completedCallback)
OSS
asyncGetBucketLifecycle
在接口中 OSS
public DeleteBucketLifecycleResult deleteBucketLifecycle(DeleteBucketLifecycleRequest request) throws ClientException, ServiceException
OSS
deleteBucketLifecycle
在接口中 OSS
ClientException
ServiceException
public OSSAsyncTask<DeleteBucketLifecycleResult> asyncDeleteBucketLifecycle(DeleteBucketLifecycleRequest request, OSSCompletedCallback<DeleteBucketLifecycleRequest,DeleteBucketLifecycleResult> completedCallback)
OSS
asyncDeleteBucketLifecycle
在接口中 OSS
public OSSAsyncTask<PutObjectResult> asyncPutObject(PutObjectRequest request, OSSCompletedCallback<PutObjectRequest,PutObjectResult> completedCallback)
OSS
asyncPutObject
在接口中 OSS
request
- the PutObjectRequest instancepublic PutObjectResult putObject(PutObjectRequest request) throws ClientException, ServiceException
OSS
putObject
在接口中 OSS
request
- the PutObjectRequest instanceClientException
ServiceException
public OSSAsyncTask<GetObjectResult> asyncGetObject(GetObjectRequest request, OSSCompletedCallback<GetObjectRequest,GetObjectResult> completedCallback)
OSS
asyncGetObject
在接口中 OSS
public GetObjectResult getObject(GetObjectRequest request) throws ClientException, ServiceException
OSS
getObject
在接口中 OSS
ClientException
ServiceException
public OSSAsyncTask<GetObjectACLResult> asyncGetObjectACL(GetObjectACLRequest request, OSSCompletedCallback<GetObjectACLRequest,GetObjectACLResult> completedCallback)
asyncGetObjectACL
在接口中 OSS
public GetObjectACLResult getObjectACL(GetObjectACLRequest request) throws ClientException, ServiceException
getObjectACL
在接口中 OSS
ClientException
ServiceException
public OSSAsyncTask<DeleteObjectResult> asyncDeleteObject(DeleteObjectRequest request, OSSCompletedCallback<DeleteObjectRequest,DeleteObjectResult> completedCallback)
OSS
asyncDeleteObject
在接口中 OSS
public DeleteObjectResult deleteObject(DeleteObjectRequest request) throws ClientException, ServiceException
OSS
deleteObject
在接口中 OSS
ClientException
ServiceException
public OSSAsyncTask<DeleteMultipleObjectResult> asyncDeleteMultipleObject(DeleteMultipleObjectRequest request, OSSCompletedCallback<DeleteMultipleObjectRequest,DeleteMultipleObjectResult> completedCallback)
OSS
asyncDeleteMultipleObject
在接口中 OSS
public DeleteMultipleObjectResult deleteMultipleObject(DeleteMultipleObjectRequest request) throws ClientException, ServiceException
OSS
deleteMultipleObject
在接口中 OSS
ClientException
ServiceException
public OSSAsyncTask<AppendObjectResult> asyncAppendObject(AppendObjectRequest request, OSSCompletedCallback<AppendObjectRequest,AppendObjectResult> completedCallback)
OSS
asyncAppendObject
在接口中 OSS
public AppendObjectResult appendObject(AppendObjectRequest request) throws ClientException, ServiceException
OSS
appendObject
在接口中 OSS
ClientException
ServiceException
public OSSAsyncTask<HeadObjectResult> asyncHeadObject(HeadObjectRequest request, OSSCompletedCallback<HeadObjectRequest,HeadObjectResult> completedCallback)
OSS
asyncHeadObject
在接口中 OSS
public HeadObjectResult headObject(HeadObjectRequest request) throws ClientException, ServiceException
OSS
headObject
在接口中 OSS
ClientException
ServiceException
public OSSAsyncTask<GetObjectMetaResult> asyncGetObjectMeta(GetObjectMetaRequest request, OSSCompletedCallback<GetObjectMetaRequest,GetObjectMetaResult> completedCallback)
OSS
asyncGetObjectMeta
在接口中 OSS
public GetObjectMetaResult getObjectMeta(GetObjectMetaRequest request) throws ClientException, ServiceException
OSS
getObjectMeta
在接口中 OSS
ClientException
ServiceException
public OSSAsyncTask<CopyObjectResult> asyncCopyObject(CopyObjectRequest request, OSSCompletedCallback<CopyObjectRequest,CopyObjectResult> completedCallback)
OSS
asyncCopyObject
在接口中 OSS
public CopyObjectResult copyObject(CopyObjectRequest request) throws ClientException, ServiceException
OSS
copyObject
在接口中 OSS
ClientException
ServiceException
public OSSAsyncTask<ListObjectsResult> asyncListObjects(ListObjectsRequest request, OSSCompletedCallback<ListObjectsRequest,ListObjectsResult> completedCallback)
OSS
asyncListObjects
在接口中 OSS
public ListObjectsResult listObjects(ListObjectsRequest request) throws ClientException, ServiceException
OSS
listObjects
在接口中 OSS
ClientException
ServiceException
public OSSAsyncTask<InitiateMultipartUploadResult> asyncInitMultipartUpload(InitiateMultipartUploadRequest request, OSSCompletedCallback<InitiateMultipartUploadRequest,InitiateMultipartUploadResult> completedCallback)
OSS
asyncInitMultipartUpload
在接口中 OSS
public InitiateMultipartUploadResult initMultipartUpload(InitiateMultipartUploadRequest request) throws ClientException, ServiceException
OSS
initMultipartUpload
在接口中 OSS
ClientException
ServiceException
public OSSAsyncTask<UploadPartResult> asyncUploadPart(UploadPartRequest request, OSSCompletedCallback<UploadPartRequest,UploadPartResult> completedCallback)
OSS
asyncUploadPart
在接口中 OSS
public UploadPartResult uploadPart(UploadPartRequest request) throws ClientException, ServiceException
OSS
uploadPart
在接口中 OSS
ClientException
ServiceException
public OSSAsyncTask<CompleteMultipartUploadResult> asyncCompleteMultipartUpload(CompleteMultipartUploadRequest request, OSSCompletedCallback<CompleteMultipartUploadRequest,CompleteMultipartUploadResult> completedCallback)
OSS
asyncCompleteMultipartUpload
在接口中 OSS
public CompleteMultipartUploadResult completeMultipartUpload(CompleteMultipartUploadRequest request) throws ClientException, ServiceException
OSS
completeMultipartUpload
在接口中 OSS
ClientException
ServiceException
public OSSAsyncTask<AbortMultipartUploadResult> asyncAbortMultipartUpload(AbortMultipartUploadRequest request, OSSCompletedCallback<AbortMultipartUploadRequest,AbortMultipartUploadResult> completedCallback)
OSS
asyncAbortMultipartUpload
在接口中 OSS
public AbortMultipartUploadResult abortMultipartUpload(AbortMultipartUploadRequest request) throws ClientException, ServiceException
OSS
abortMultipartUpload
在接口中 OSS
ClientException
ServiceException
public OSSAsyncTask<ListPartsResult> asyncListParts(ListPartsRequest request, OSSCompletedCallback<ListPartsRequest,ListPartsResult> completedCallback)
OSS
asyncListParts
在接口中 OSS
public ListPartsResult listParts(ListPartsRequest request) throws ClientException, ServiceException
OSS
listParts
在接口中 OSS
ClientException
ServiceException
public OSSAsyncTask<ListMultipartUploadsResult> asyncListMultipartUploads(ListMultipartUploadsRequest request, OSSCompletedCallback<ListMultipartUploadsRequest,ListMultipartUploadsResult> completedCallback)
OSS
asyncListMultipartUploads
在接口中 OSS
public ListMultipartUploadsResult listMultipartUploads(ListMultipartUploadsRequest request) throws ClientException, ServiceException
OSS
listMultipartUploads
在接口中 OSS
ClientException
ServiceException
public void updateCredentialProvider(OSSCredentialProvider credentialProvider)
OSS
updateCredentialProvider
在接口中 OSS
public OSSAsyncTask<CompleteMultipartUploadResult> asyncMultipartUpload(MultipartUploadRequest request, OSSCompletedCallback<MultipartUploadRequest,CompleteMultipartUploadResult> completedCallback)
OSS
asyncMultipartUpload
在接口中 OSS
public CompleteMultipartUploadResult multipartUpload(MultipartUploadRequest request) throws ClientException, ServiceException
OSS
multipartUpload
在接口中 OSS
ClientException
ServiceException
public OSSAsyncTask<ResumableUploadResult> asyncResumableUpload(ResumableUploadRequest request, OSSCompletedCallback<ResumableUploadRequest,ResumableUploadResult> completedCallback)
OSS
asyncResumableUpload
在接口中 OSS
public ResumableUploadResult resumableUpload(ResumableUploadRequest request) throws ClientException, ServiceException
OSS
resumableUpload
在接口中 OSS
ClientException
ServiceException
public OSSAsyncTask<ResumableUploadResult> asyncSequenceUpload(ResumableUploadRequest request, OSSCompletedCallback<ResumableUploadRequest,ResumableUploadResult> completedCallback)
asyncSequenceUpload
在接口中 OSS
public ResumableUploadResult sequenceUpload(ResumableUploadRequest request) throws ClientException, ServiceException
sequenceUpload
在接口中 OSS
ClientException
ServiceException
public java.lang.String presignConstrainedObjectURL(GeneratePresignedUrlRequest request) throws ClientException
OSS
presignConstrainedObjectURL
在接口中 OSS
request
- Generates the signed by custom config @see {GeneratePresignedUrlRequest}ClientException
public java.lang.String presignConstrainedObjectURL(java.lang.String bucketName, java.lang.String objectKey, long expiredTimeInSeconds) throws ClientException
OSS
presignConstrainedObjectURL
在接口中 OSS
bucketName
- bucket nameobjectKey
- Object keyexpiredTimeInSeconds
- URL's expiration time in secondsClientException
public java.lang.String presignPublicObjectURL(java.lang.String bucketName, java.lang.String objectKey)
OSS
presignPublicObjectURL
在接口中 OSS
bucketName
- bucket nameobjectKey
- Object keypublic boolean doesObjectExist(java.lang.String bucketName, java.lang.String objectKey) throws ClientException, ServiceException
OSS
doesObjectExist
在接口中 OSS
ClientException
ServiceException
public void abortResumableUpload(ResumableUploadRequest request) throws java.io.IOException
OSS
abortResumableUpload
在接口中 OSS
java.io.IOException
public OSSAsyncTask<TriggerCallbackResult> asyncTriggerCallback(TriggerCallbackRequest request, OSSCompletedCallback<TriggerCallbackRequest,TriggerCallbackResult> completedCallback)
asyncTriggerCallback
在接口中 OSS
public TriggerCallbackResult triggerCallback(TriggerCallbackRequest request) throws ClientException, ServiceException
triggerCallback
在接口中 OSS
ClientException
ServiceException
public OSSAsyncTask<ImagePersistResult> asyncImagePersist(ImagePersistRequest request, OSSCompletedCallback<ImagePersistRequest,ImagePersistResult> completedCallback)
asyncImagePersist
在接口中 OSS
public ImagePersistResult imagePersist(ImagePersistRequest request) throws ClientException, ServiceException
imagePersist
在接口中 OSS
ClientException
ServiceException
public PutSymlinkResult putSymlink(PutSymlinkRequest request) throws ClientException, ServiceException
OSS
putSymlink
在接口中 OSS
request
- A PutSymlinkRequest
instance that specifies the
bucket name, symlink name.ClientException
- OSS Client side exception.ServiceException
- OSS Server side exception.public OSSAsyncTask<PutSymlinkResult> asyncPutSymlink(PutSymlinkRequest request, OSSCompletedCallback<PutSymlinkRequest,PutSymlinkResult> completedCallback)
OSS
asyncPutSymlink
在接口中 OSS
request
- A PutSymlinkRequest
instance that specifies the
bucket name, symlink name.completedCallback
- A OSSCompletedCallback
instance that specifies callback functionsOSSAsyncTask
instance.public GetSymlinkResult getSymlink(GetSymlinkRequest request) throws ClientException, ServiceException
OSS
getSymlink
在接口中 OSS
request
- A GetSymlinkRequest
instance which specifies the bucket
name and symlink name.ClientException
- OSS Client side exception.ServiceException
- OSS Server side exception.public OSSAsyncTask<GetSymlinkResult> asyncGetSymlink(GetSymlinkRequest request, OSSCompletedCallback<GetSymlinkRequest,GetSymlinkResult> completedCallback)
OSS
asyncGetSymlink
在接口中 OSS
request
- A GetSymlinkRequest
instance which specifies the bucket
name and symlink name.completedCallback
- A OSSCompletedCallback
instance that specifies callback functionsOSSAsyncTask
instance.public RestoreObjectResult restoreObject(RestoreObjectRequest request) throws ClientException, ServiceException
OSS
restoreObject
在接口中 OSS
request
- A RestoreObjectRequest
instance that specifies the bucket
name and object key.RestoreObjectResult
instance.ClientException
ServiceException
public OSSAsyncTask<RestoreObjectResult> asyncRestoreObject(RestoreObjectRequest request, OSSCompletedCallback<RestoreObjectRequest,RestoreObjectResult> completedCallback)
OSS
asyncRestoreObject
在接口中 OSS
request
- A RestoreObjectRequest
instance that specifies the bucket
name and object key.completedCallback
- A OSSCompletedCallback
instance that specifies callback functionsOSSAsyncTask
instance.public OSSAsyncTask<ResumableDownloadResult> asyncResumableDownload(ResumableDownloadRequest request, OSSCompletedCallback<ResumableDownloadRequest,ResumableDownloadResult> completedCallback)
OSS
asyncResumableDownload
在接口中 OSS
request
- A ResumableDownloadRequest
instance that specifies the bucket
name and object key.completedCallback
- A OSSCompletedCallback
instance that specifies callback functionsOSSAsyncTask
instance.public ResumableDownloadResult syncResumableDownload(ResumableDownloadRequest request) throws ClientException, ServiceException
OSS
syncResumableDownload
在接口中 OSS
request
- A ResumableDownloadRequest
instance that specifies the bucket
name and object key.ClientException
ServiceException
public PutObjectTaggingResult putObjectTagging(PutObjectTaggingRequest request) throws ClientException, ServiceException
OSS
putObjectTagging
在接口中 OSS
request
- A PutObjectTaggingRequest
instance which specifies the bucket
name、 object key and tags.PutObjectTaggingResult
instance.ClientException
ServiceException
public OSSAsyncTask<PutObjectTaggingResult> asyncPutObjectTagging(PutObjectTaggingRequest request, OSSCompletedCallback<PutObjectTaggingRequest,PutObjectTaggingResult> completedCallback)
OSS
asyncPutObjectTagging
在接口中 OSS
request
- A PutObjectTaggingRequest
instance which specifies the bucket
name、 object key and tags.completedCallback
- A OSSCompletedCallback
instance that specifies callback functionsOSSAsyncTask
instance.public GetObjectTaggingResult getObjectTagging(GetObjectTaggingRequest request) throws ClientException, ServiceException
OSS
getObjectTagging
在接口中 OSS
request
- A GetObjectTaggingRequest
instance which specifies the bucket
name and object key.GetObjectTaggingResult
instance.ClientException
ServiceException
public OSSAsyncTask<GetObjectTaggingResult> asyncGetObjectTagging(GetObjectTaggingRequest request, OSSCompletedCallback<GetObjectTaggingRequest,GetObjectTaggingResult> completedCallback)
OSS
asyncGetObjectTagging
在接口中 OSS
request
- A GetObjectTaggingRequest
instance that specifies the bucket
name and object key.completedCallback
- A OSSCompletedCallback
instance that specifies callback functionsOSSAsyncTask
instance.public DeleteObjectTaggingResult deleteObjectTagging(DeleteObjectTaggingRequest request) throws ClientException, ServiceException
OSS
deleteObjectTagging
在接口中 OSS
request
- A DeleteObjectTaggingRequest
instance which specifies the bucket
name and object key.DeleteObjectTaggingResult
instance.ClientException
ServiceException
public OSSAsyncTask<DeleteObjectTaggingResult> asyncDeleteObjectTagging(DeleteObjectTaggingRequest request, OSSCompletedCallback<DeleteObjectTaggingRequest,DeleteObjectTaggingResult> completedCallback)
OSS
asyncDeleteObjectTagging
在接口中 OSS
request
- A DeleteObjectTaggingRequest
instance that specifies the bucket
name and object key.completedCallback
- A OSSCompletedCallback
instance that specifies callback functionsOSSAsyncTask
instance.