@Deprecated public interface TOS
| 限定符和类型 | 方法和说明 |
|---|---|
AbortMultipartUploadOutput |
abortMultipartUpload(String bucket,
AbortMultipartUploadInput input)
已过时。
abort a multipart upload operation
|
AppendObjectOutput |
appendObject(String bucket,
String objectKey,
InputStream content,
long offset,
RequestOptionsBuilder... builders)
已过时。
append content at the tail of an appendable object
|
CompleteMultipartUploadOutput |
completeMultipartUpload(String bucket,
CompleteMultipartUploadInput input)
已过时。
complete a multipart upload operation
|
CopyObjectOutput |
copyObject(String bucket,
String srcObjectKey,
String dstObjectKey,
RequestOptionsBuilder... builders)
已过时。
copy an object in the same bucket
|
CopyObjectOutput |
copyObjectFrom(String bucket,
String srcBucket,
String srcObjectKey,
String dstObjectKey,
RequestOptionsBuilder... builders)
已过时。
copy an object from bucket A to bucket B, the method is called by bucket B.
|
CopyObjectOutput |
copyObjectTo(String bucket,
String dstBucket,
String dstObjectKey,
String srcObjectKey,
RequestOptionsBuilder... builders)
已过时。
copy an object from bucket A to bucket B, the method is called by bucket A.
|
CreateBucketOutput |
createBucket(CreateBucketInput input)
已过时。
create a new bucket
|
CreateMultipartUploadOutput |
createMultipartUpload(String bucket,
String objectKey,
RequestOptionsBuilder... builders)
已过时。
create a multipart upload operation
|
DeleteBucketOutput |
deleteBucket(String bucket)
已过时。
delete an existed bucket
|
DeleteBucketPolicyOutput |
deleteBucketPolicy(String bucket)
已过时。
删除桶策略
|
DeleteMultiObjectsOutput |
deleteMultiObjects(String bucket,
DeleteMultiObjectsInput input,
RequestOptionsBuilder... builders)
已过时。
delete a list of objects
|
DeleteObjectOutput |
deleteObject(String bucket,
String objectKey,
RequestOptionsBuilder... builders)
已过时。
delete an object
|
GetBucketPolicyOutput |
getBucketPolicy(String bucket)
已过时。
获取桶策略
|
GetObjectOutput |
getObject(String bucket,
String objectKey,
RequestOptionsBuilder... builders)
已过时。
get data and metadata of an object
|
GetObjectAclOutput |
getObjectAcl(String bucket,
String objectKey,
RequestOptionsBuilder... builders)
已过时。
get object's acl grants or rules
|
HeadBucketOutput |
headBucket(String bucket)
已过时。
get bucket's meta data
|
HeadObjectOutput |
headObject(String bucket,
String objectKey,
RequestOptionsBuilder... builders)
已过时。
get metadata of an object with its data stream
|
ListBucketsOutput |
listBuckets(ListBucketsInput input)
已过时。
list existed bucket owned by you.
|
ListMultipartUploadsOutput |
listMultipartUploads(String bucket,
ListMultipartUploadsInput input)
已过时。
list multipart uploads
|
ListObjectsOutput |
listObjects(String bucket,
ListObjectsInput input)
已过时。
list objects of a bucket
|
ListObjectVersionsOutput |
listObjectVersions(String bucket,
ListObjectVersionsInput input)
已过时。
list multi-version objects of a bucket
|
ListUploadedPartsOutput |
listUploadedParts(String bucket,
ListUploadedPartsInput input,
RequestOptionsBuilder... builders)
已过时。
list parts that have been uploaded.
|
String |
preSignedURL(String httpMethod,
String bucket,
String objectKey,
Duration ttl,
RequestOptionsBuilder... builders)
已过时。
create a pre-signed URL
|
PutBucketPolicyOutput |
putBucketPolicy(String bucket,
String policy)
已过时。
设置桶策略
|
PutObjectOutput |
putObject(String bucket,
String objectKey,
InputStream inputStream,
RequestOptionsBuilder... builders)
已过时。
upload an object to TOS server
|
PutObjectAclOutput |
putObjectAcl(String bucket,
PutObjectAclInput input)
已过时。
set object's acl grants or rules
|
SetObjectMetaOutput |
setObjectMeta(String bucket,
String objectKey,
RequestOptionsBuilder... builders)
已过时。
set some metadata of the object
|
UploadFileOutput |
uploadFile(String bucket,
UploadFileInput input,
RequestOptionsBuilder... builders)
已过时。
|
UploadPartOutput |
uploadPart(String bucket,
UploadPartInput input,
RequestOptionsBuilder... builders)
已过时。
upload a part for a multipart upload operation
|
UploadPartCopyOutput |
uploadPartCopy(String bucket,
UploadPartCopyInput input,
RequestOptionsBuilder... builders)
已过时。
copy a part of object as a part of a multipart upload operation
|
CreateBucketOutput createBucket(CreateBucketInput input) throws TosException
input - require input's bucketName not nullCreateBucketOutputTosExceptionHeadBucketOutput headBucket(String bucket) throws TosException
bucket - bucket nameHeadBucketOutputTosExceptionDeleteBucketOutput deleteBucket(String bucket) throws TosException
bucket - bucket nameDeleteBucketOutputTosExceptionListBucketsOutput listBuckets(ListBucketsInput input) throws TosException
input - no params requiredListBucketsOutputTosExceptionPutBucketPolicyOutput putBucketPolicy(String bucket, String policy) throws TosException
bucket - 桶名policy - 桶策略TosExceptionGetBucketPolicyOutput getBucketPolicy(String bucket) throws TosException
bucket - 桶名TosExceptionDeleteBucketPolicyOutput deleteBucketPolicy(String bucket) throws TosException
bucket - 桶名TosExceptionGetObjectOutput getObject(String bucket, String objectKey, RequestOptionsBuilder... builders) throws TosException
bucket - the bucket to operateobjectKey - the name of objectbuilders - optional. setting withXXX properties.
withVersionID: which version of this object.
withRange: the range of content.
withIfModifiedSince: return if the object modified after the given date,
otherwise return status code 304.
withIfUnmodifiedSince, withIfMatch, withIfNoneMatch set If-Unmodified-Since, If-Match and If-None-Match.GetObjectOutputTosExceptionHeadObjectOutput headObject(String bucket, String objectKey, RequestOptionsBuilder... builders) throws TosException
bucket - the bucket to operateobjectKey - the name of objectbuilders - optional. setting withXXX properties.
withVersionID: which version of this object.
withRange: the range of content.
withIfModifiedSince: return if the object modified after the given date,
otherwise return status code 304.
withIfUnmodifiedSince, withIfMatch, withIfNoneMatch set If-Unmodified-Since, If-Match and If-None-Match.HeadObjectOutputTosExceptionDeleteObjectOutput deleteObject(String bucket, String objectKey, RequestOptionsBuilder... builders) throws TosException
bucket - the bucket to operateobjectKey - the name of objectbuilders - optional. setting withXXX properties.
withVersionID: which version of this object will be deletedDeleteObjectOutputTosExceptionDeleteMultiObjectsOutput deleteMultiObjects(String bucket, DeleteMultiObjectsInput input, RequestOptionsBuilder... builders) throws TosException
bucket - the bucket to operateinput - the objects to be deletedbuilders - optional. setting withXXX properties.DeleteMultiObjectsOutputTosExceptionPutObjectOutput putObject(String bucket, String objectKey, InputStream inputStream, RequestOptionsBuilder... builders) throws TosException
bucket - the bucket to operateobjectKey - the name of objectinputStream - the content of objectbuilders - optional. setting withXXX properties.
withContentType: set Content-Type.
withContentDisposition: set Content-Disposition.
withContentLanguage: set Content-Language.
withContentEncoding: set Content-Encoding.
withCacheControl: set Cache-Control.
withExpires: set Expires.
withMeta: set meta header(s).
withContentSHA256: set Content-Sha256.
withContentMD5: set Content-MD5.
withExpires: set Expires.
withServerSideEncryptionCustomer: set server side encryption options.
withACL, withACLGrantFullControl, withACLGrantRead, withACLGrantReadAcp,
withACLGrantWrite, withACLGrantWriteAcp set object acl.
withStorageClass set storage class, 'STANDARD|IA'PutObjectOutputTosException@Deprecated UploadFileOutput uploadFile(String bucket, UploadFileInput input, RequestOptionsBuilder... builders) throws TosException
TosExceptionAppendObjectOutput appendObject(String bucket, String objectKey, InputStream content, long offset, RequestOptionsBuilder... builders) throws TosException
bucket - the bucket to operateobjectKey - the name of objectcontent - the content of objectoffset - append position, equals to the current object-sizebuilders - optional. setting withXXX properties.
withContentType: set Content-Type.
withContentDisposition: set Content-Disposition.
withContentLanguage: set Content-Language.
withContentEncoding: set Content-Encoding.
withCacheControl: set Cache-Control.
withExpires: set Expires.
withMeta: set meta header(s).
withExpires: set Expires.
withACL, withACLGrantFullControl, withACLGrantRead, withACLGrantReadAcp,
withACLGrantWrite, withACLGrantWriteAcp set object acl.
withStorageClass set storage class, 'STANDARD|IA'
above options only take effect when offset parameter is 0.
withContentSHA256: set Content-Sha256.
withContentMD5: set Content-MD5.AppendObjectOutputTosExceptionSetObjectMetaOutput setObjectMeta(String bucket, String objectKey, RequestOptionsBuilder... builders) throws TosException
bucket - the bucket to operateobjectKey - the name of objectbuilders - optional. setting withXXX properties.
withContentType set Content-Type.
withContentDisposition set Content-Disposition.
withContentLanguage set Content-Languag.
withContentEncoding set Content-Encoding.
withCacheControl set Cache-Control.
withExpires set Expires.
withMeta set meta header(s).
withVersionID which version of this object will be setSetObjectMetaOutputTosExceptionListObjectsOutput listObjects(String bucket, ListObjectsInput input) throws TosException
bucket - the bucket to operateinput - query paramsListObjectsOutputTosExceptionListObjectVersionsOutput listObjectVersions(String bucket, ListObjectVersionsInput input) throws TosException
bucket - the bucket to operateinput - query paramsListObjectVersionsOutputTosExceptionCopyObjectOutput copyObject(String bucket, String srcObjectKey, String dstObjectKey, RequestOptionsBuilder... builders) throws TosException
bucket - the bucket to operatesrcObjectKey - the source object namedstObjectKey - the destination object name
NOTICE: srcObjectKey and dstObjectKey belongs to the same bucket.builders - optional. setting withXXX properties.
withVersionID the version id of source object.
withMetadataDirective copy source object metadata or replace with new object metadata.
withACL withACLGrantFullControl withACLGrantRead withACLGrantReadAcp
withACLGrantWrite withACLGrantWriteAcp set object acl.
withCopySourceIfMatch withCopySourceIfNoneMatch withCopySourceIfModifiedSince
withCopySourceIfUnmodifiedSince set copy conditions.
withStorageClass set storage class, 'STANDARD|IA'
withServerSideEncryptionCustomer: Copy SSE-C加密对象,源对象的加密算法、加密密钥、密钥MD5
if copyObject called with withMetadataDirective(TosHeaders.METADATA_DIRECTIVE_REPLACE),
these properties can be used:
withContentType set Content-Type.
withContentDisposition set Content-Disposition.
withContentLanguage set Content-Language.
withContentEncoding set Content-Encoding.
withCacheControl set Cache-Control.
withExpires set Expires.
withMeta set meta header(s),CopyObjectOutputTosExceptionCopyObjectOutput copyObjectTo(String bucket, String dstBucket, String dstObjectKey, String srcObjectKey, RequestOptionsBuilder... builders) throws TosException
bucket - the bucket to operatedstBucket - the destination bucketdstObjectKey - the destination object namesrcObjectKey - the source object namebuilders - optional. setting withXXX properties.
withVersionID the version id of source object.
withMetadataDirective copy source object metadata or replace with new object metadata.
withACL withACLGrantFullControl withACLGrantRead withACLGrantReadAcp
withACLGrantWrite withACLGrantWriteAcp set object acl.
withCopySourceIfMatch withCopySourceIfNoneMatch withCopySourceIfModifiedSince
withCopySourceIfUnmodifiedSince set copy conditions.
withStorageClass set storage class, 'STANDARD|IA'
withServerSideEncryptionCustomer: Copy SSE-C加密对象,源对象的加密算法、加密密钥、密钥MD5
if copyObjectTo called with withMetadataDirective(TosHeaders.METADATA_DIRECTIVE_REPLACE),
these properties can be used:
withContentType set Content-Type.
withContentDisposition set Content-Disposition.
withContentLanguage set Content-Language.
withContentEncoding set Content-Encoding.
withCacheControl set Cache-Control.
withExpires set Expires.
withMeta set meta header(s).CopyObjectOutputTosExceptionCopyObjectOutput copyObjectFrom(String bucket, String srcBucket, String srcObjectKey, String dstObjectKey, RequestOptionsBuilder... builders) throws TosException
bucket - the bucket to operatesrcBucket - the source bucketsrcObjectKey - the source object namedstObjectKey - the destination object namebuilders - optional. setting withXXX properties.
withVersionID the version id of source object.
withMetadataDirective copy source object metadata or replace with new object metadata.
withACL withACLGrantFullControl withACLGrantRead withACLGrantReadAcp
withACLGrantWrite withACLGrantWriteAcp set object acl.
withCopySourceIfMatch withCopySourceIfNoneMatch withCopySourceIfModifiedSince
withCopySourceIfUnmodifiedSince set copy conditions.
withStorageClass set storage class, 'STANDARD|IA'
withServerSideEncryptionCustomer: Copy SSE-C加密对象,源对象的加密算法、加密密钥、密钥MD5
if copyObjectFrom called with withMetadataDirective(TosHeaders.METADATA_DIRECTIVE_REPLACE),
these properties can be used:
withContentType set Content-Type.
withContentDisposition set Content-Disposition.
withContentLanguage set Content-Language.
withContentEncoding set Content-Encoding.
withCacheControl set Cache-Control.
withExpires set Expires.
withMeta set meta header(s).CopyObjectOutputTosExceptionUploadPartCopyOutput uploadPartCopy(String bucket, UploadPartCopyInput input, RequestOptionsBuilder... builders) throws TosException
bucket - the bucket to operateinput - uploadID, destinationKey, sourceBucket, sourceKey, partNumber, partSize and startOffset are inclusive,
other parameters are optional.builders - optional. setting withXXX properties.
withCopySourceIfMatch, withCopySourceIfNoneMatch, withCopySourceIfModifiedSince and
withCopySourceIfUnmodifiedSince set copy conditions
withServerSideEncryption: set server side encryption algorithm, 'AES256'.
withServerSideEncryptionCustomer: Copy SSE-C加密对象,源对象的加密算法、加密密钥、密钥MD5UploadPartCopyOutputTosExceptionPutObjectAclOutput putObjectAcl(String bucket, PutObjectAclInput input) throws TosException
bucket - the bucket to operateinput - aclGrant, aclRules can not set both.PutObjectAclOutputTosExceptionGetObjectAclOutput getObjectAcl(String bucket, String objectKey, RequestOptionsBuilder... builders) throws TosException
bucket - the bucket to operateobjectKey - the name of objectbuilders - optional. setting withXXX properties.
withVersionID the version of the objectGetObjectAclOutputTosExceptionCreateMultipartUploadOutput createMultipartUpload(String bucket, String objectKey, RequestOptionsBuilder... builders) throws TosException
bucket - the bucket to operateobjectKey - the name of objectbuilders - optional. setting withXXX properties.
withContentType set Content-Type.
withContentDisposition set Content-Disposition.
withContentLanguage set Content-Language.
withContentEncoding set Content-Encoding.
withCacheControl set Cache-Control.
withExpires set Expires.
withMeta set meta header(s).
withContentSHA256 set Content-Sha256.
withContentMD5 set Content-MD5.
withExpires set Expires.
withServerSideEncryptionCustomer set server side encryption options.
withACL, WithACLGrantFullControl, withACLGrantRead, withACLGrantReadAcp,
withACLGrantWrite, withACLGrantWriteAcp set object acl.
withStorageClass set storage class, 'STANDARD|IA'.
withServerSideEncryption: set server side encryption algorithm, 'AES256'.CreateMultipartUploadOutputTosExceptionUploadPartOutput uploadPart(String bucket, UploadPartInput input, RequestOptionsBuilder... builders) throws TosException
bucket - the bucket to operateinput - some params are required, eg, key, uploadID, partSize, partNumber and partNumberbuilders - optional. setting withXXX properties.UploadPartOutputTosExceptionCompleteMultipartUploadOutput completeMultipartUpload(String bucket, CompleteMultipartUploadInput input) throws TosException
bucket - the bucket to operateinput - key: the object name,
uploadID: the uploadID got from CreateMultipartUpload,
uploadedParts: upload part output got from uploadPart or uploadPartCopyCompleteMultipartUploadOutputTosExceptionAbortMultipartUploadOutput abortMultipartUpload(String bucket, AbortMultipartUploadInput input) throws TosException
bucket - the bucket to operateinput - AbortMultipartUploadOutputTosExceptionListUploadedPartsOutput listUploadedParts(String bucket, ListUploadedPartsInput input, RequestOptionsBuilder... builders) throws TosException
bucket - the bucket to operateinput - key, uploadID and other parametersbuilders - optional. setting withXXX properties.ListUploadedPartsOutputTosExceptionListMultipartUploadsOutput listMultipartUploads(String bucket, ListMultipartUploadsInput input) throws TosException
bucket - the bucket to operateinput - ListMultipartUploadsInputListMultipartUploadsOutputTosExceptionString preSignedURL(String httpMethod, String bucket, String objectKey, Duration ttl, RequestOptionsBuilder... builders) throws TosException
httpMethod - the http method in the URL, such as GET, POST, PUT, HEADbucket - the bucket to operateobjectKey - the object namettl - the time-to-live of signed URLbuilders - withVersionID the version id of the objectTosExceptionCopyright © 2023. All rights reserved.