public class ObsClient extends com.obs.services.internal.ObsService implements Closeable, IObsClient, IFSClient
| 构造器和说明 |
|---|
ObsClient(IObsCredentialsProvider provider,
ObsConfiguration config) |
ObsClient(IObsCredentialsProvider provider,
String endPoint) |
ObsClient(ObsConfiguration config)
Constructor
|
ObsClient(String endPoint)
Constructor
|
ObsClient(String accessKey,
String secretKey,
ObsConfiguration config)
Constructor
|
ObsClient(String accessKey,
String secretKey,
String endPoint)
Constructor
|
ObsClient(String accessKey,
String secretKey,
String securityToken,
ObsConfiguration config)
Constructor
|
ObsClient(String accessKey,
String secretKey,
String securityToken,
String endPoint)
Constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
HeaderResponse |
abortMultipartUpload(AbortMultipartUploadRequest request)
Abort a multipart upload.
|
ObsFSFile |
appendFile(WriteFileRequest request)
Append data to a file.
|
AppendObjectResult |
appendObject(AppendObjectRequest request)
Perform an appendable upload.
|
String |
base64Md5(InputStream is) |
String |
base64Md5(InputStream is,
long length,
long offset) |
void |
close()
Close ObsClient and release connection resources.
|
CompleteMultipartUploadResult |
completeMultipartUpload(CompleteMultipartUploadRequest request)
Combine parts.
|
CopyObjectResult |
copyObject(CopyObjectRequest request)
Copy an object.
|
CopyObjectResult |
copyObject(String sourceBucketName,
String sourceObjectKey,
String destBucketName,
String destObjectKey)
Copy an object.
|
CopyPartResult |
copyPart(CopyPartRequest request)
Copy a part.
|
ObsBucket |
createBucket(CreateBucketRequest request)
Create a bucket.
|
ObsBucket |
createBucket(ObsBucket bucket)
Create a bucket.
|
ObsBucket |
createBucket(S3Bucket bucket)
已过时。
|
ObsBucket |
createBucket(String bucketName)
Create a bucket.
|
ObsBucket |
createBucket(String bucketName,
String location)
Create a bucket.
|
TemporarySignatureResponse |
createGetTemporarySignature(String bucketName,
String objectKey,
String prefix,
Date expiryDate,
Map<String,String> headers,
Map<String,Object> queryParams)
Generate temporary authorization parameters for GET requests based on the object name prefix and validity period.
|
TemporarySignatureResponse |
createGetTemporarySignature(String bucketName,
String objectKey,
String prefix,
long expires,
Map<String,String> headers,
Map<String,Object> queryParams)
Generate temporary authorization parameters for GET requests based on the object name prefix and validity period.
|
PostSignatureResponse |
createPostSignature(long expires,
String bucketName,
String objectKey)
Generate parameters for browser-based authorized access.
|
PostSignatureResponse |
createPostSignature(PostSignatureRequest request)
Generate parameters for browser-based authorized access.
|
PostSignatureResponse |
createPostSignature(String acl,
String contentType,
long expires,
String bucketName,
String objectKey)
Generate parameters for browser-based authorized access.
|
String |
createSignedUrl(HttpMethodEnum method,
String bucketName,
String objectKey,
SpecialParamEnum specialParam,
Date expiryTime,
Map<String,String> headers,
Map<String,Object> queryParams)
已过时。
|
String |
createSignedUrl(HttpMethodEnum method,
String bucketName,
String objectKey,
SpecialParamEnum specialParam,
long expires,
Map<String,String> headers,
Map<String,Object> queryParams)
已过时。
|
TemporarySignatureResponse |
createTemporarySignature(TemporarySignatureRequest request)
Generate temporarily authorized access parameters.
|
V4PostSignatureResponse |
createV4PostSignature(long expires,
String bucketName,
String objectKey)
已过时。
|
V4PostSignatureResponse |
createV4PostSignature(String acl,
String contentType,
long expires,
String bucketName,
String objectKey)
已过时。
|
V4PostSignatureResponse |
createV4PostSignature(V4PostSignatureRequest request)
已过时。
|
V4TemporarySignatureResponse |
createV4TemporarySignature(V4TemporarySignatureRequest request)
已过时。
|
HeaderResponse |
deleteBucket(String bucketName)
Delete a bucket.
|
HeaderResponse |
deleteBucketCors(String bucketName)
Delete the bucket CORS rules.
|
HeaderResponse |
deleteBucketDirectColdAccess(String bucketName)
Delete the direct reading policy for Archive objects in a bucket.
|
HeaderResponse |
deleteBucketEncryption(String bucketName)
Delete bucket encryption configuration.
|
HeaderResponse |
deleteBucketLifecycle(String bucketName)
Delete the bucket lifecycle rules from a bucket.
|
HeaderResponse |
deleteBucketLifecycleConfiguration(String bucketName)
已过时。
|
HeaderResponse |
deleteBucketPolicy(String bucketName)
Delete bucket policies.
|
HeaderResponse |
deleteBucketReplication(String bucketName)
Delete the bucket cross-region replication configuration.
|
HeaderResponse |
deleteBucketReplicationConfiguration(String bucketName)
已过时。
|
HeaderResponse |
deleteBucketTagging(String bucketName)
Delete bucket tags.
|
HeaderResponse |
deleteBucketWebsite(String bucketName)
Delete the website hosting configuration of a bucket.
|
HeaderResponse |
deleteBucketWebsiteConfiguration(String bucketName)
已过时。
|
DeleteObjectResult |
deleteObject(String bucketName,
String objectKey)
Delete an object.
|
DeleteObjectResult |
deleteObject(String bucketName,
String objectKey,
String versionId)
Delete an object.
|
DeleteObjectsResult |
deleteObjects(DeleteObjectsRequest deleteObjectsRequest)
Delete objects in a batch.
|
ReadAheadResult |
deleteReadAheadObjects(String bucketName,
String prefix)
Delete the read-ahead cache.
|
boolean |
doesObjectExist(GetObjectMetadataRequest request) |
boolean |
doesObjectExist(String buckeName,
String objectKey) |
DownloadFileResult |
downloadFile(DownloadFileRequest downloadFileRequest)
Download a file.
|
DropFileResult |
dropFile(DropFileRequest request)
Delete a file.
|
TaskProgressStatus |
dropFolder(DropFolderRequest request)
Delete a folder.
|
protected void |
finalize() |
ObsFSAttribute |
getAttribute(GetAttributeRequest request)
Obtain file or folder properties.
|
AccessControlList |
getBucketAcl(String bucketName)
Obtain a bucket ACL.
|
BucketCors |
getBucketCors(String bucketName)
Obtain the bucket CORS rules.
|
BucketDirectColdAccess |
getBucketDirectColdAccess(String bucketName)
Obtain the direct reading policy for Archive objects in a bucket.
|
BucketEncryption |
getBucketEncryption(String bucketName)
Obtain bucket encryption configuration.
|
GetBucketFSStatusResult |
getBucketFSStatus(GetBucketFSStatusRequest request)
Check whether the file gateway feature is enabled for the bucket.
|
LifecycleConfiguration |
getBucketLifecycle(String bucketName)
Obtain the bucket lifecycle rules.
|
LifecycleConfiguration |
getBucketLifecycleConfiguration(String bucketName)
已过时。
|
String |
getBucketLocation(String bucketName)
Obtain the bucket location.
|
BucketLocationResponse |
getBucketLocationV2(String bucketName)
Obtain the bucket location.
|
BucketLoggingConfiguration |
getBucketLogging(String bucketName)
Obtain the logging settings of a bucket.
|
BucketLoggingConfiguration |
getBucketLoggingConfiguration(String bucketName)
已过时。
|
BucketMetadataInfoResult |
getBucketMetadata(BucketMetadataInfoRequest request)
Obtain bucket metadata.
|
BucketNotificationConfiguration |
getBucketNotification(String bucketName)
Obtain the notification configuration of a bucket.
|
String |
getBucketPolicy(String bucketName)
Obtain bucket policies.
|
BucketPolicyResponse |
getBucketPolicyV2(String bucketName)
Obtain bucket policies.
|
BucketQuota |
getBucketQuota(String bucketName)
Obtain the bucket quota.
|
ReplicationConfiguration |
getBucketReplication(String bucketName)
Obtain the cross-region replication configuration of a bucket.
|
ReplicationConfiguration |
getBucketReplicationConfiguration(String bucketName)
已过时。
|
BucketStorageInfo |
getBucketStorageInfo(String bucketName)
Obtain bucket storage information.
|
BucketStoragePolicyConfiguration |
getBucketStoragePolicy(String bucketName)
Obtain the bucket storage class.
|
BucketTagInfo |
getBucketTagging(String bucketName)
Obtain bucket tags.
|
BucketVersioningConfiguration |
getBucketVersioning(String bucketName)
Obtain the versioning status for a bucket.
|
WebsiteConfiguration |
getBucketWebsite(String bucketName)
Obtain the website hosting configuration of a Bucket
|
WebsiteConfiguration |
getBucketWebsiteConfiguration(String bucketName)
已过时。
|
ObsObject |
getObject(GetObjectRequest request)
Download an object.
|
ObsObject |
getObject(String bucketName,
String objectKey)
Download an object.
|
ObsObject |
getObject(String bucketName,
String objectKey,
String versionId)
Download an object.
|
AccessControlList |
getObjectAcl(String bucketName,
String objectKey)
Obtain an object ACL.
|
AccessControlList |
getObjectAcl(String bucketName,
String objectKey,
String versionId)
Obtain an object ACL.
|
ObjectMetadata |
getObjectMetadata(GetObjectMetadataRequest request)
Obtain object properties.
|
ObjectMetadata |
getObjectMetadata(String bucketName,
String objectKey)
Obtain object properties.
|
ObjectMetadata |
getObjectMetadata(String bucketName,
String objectKey,
String versionId)
Obtain object properties.
|
boolean |
headBucket(String bucketName)
Identify whether a bucket exists.
|
InitiateMultipartUploadResult |
initiateMultipartUpload(InitiateMultipartUploadRequest request)
Initialize a multipart upload.
|
List<S3Bucket> |
listBuckets()
已过时。
|
List<ObsBucket> |
listBuckets(ListBucketsRequest request)
Obtain the bucket list.
|
ListBucketsResult |
listBucketsV2(ListBucketsRequest request)
Obtain the bucket list.
|
MultipartUploadListing |
listMultipartUploads(ListMultipartUploadsRequest request)
List incomplete multipart uploads.
|
ObjectListing |
listObjects(ListObjectsRequest request)
List objects in the bucket.
|
ObjectListing |
listObjects(String bucketName)
List objects in the bucket.
|
ListPartsResult |
listParts(ListPartsRequest request)
List uploaded parts.
|
ListVersionsResult |
listVersions(ListVersionsRequest request)
List versioning objects in a bucket.
|
ListVersionsResult |
listVersions(String bucketName)
List versioning objects in a bucket.
|
ListVersionsResult |
listVersions(String bucketName,
long maxKeys)
List versioning objects in a bucket.
|
ListVersionsResult |
listVersions(String bucketName,
String prefix,
String delimiter,
String keyMarker,
String versionIdMarker,
long maxKeys)
List versioning objects in a bucket.
|
ListVersionsResult |
listVersions(String bucketName,
String prefix,
String delimiter,
String keyMarker,
String versionIdMarker,
long maxKeys,
String nextVersionIdMarker)
已过时。
|
ObsFSBucket |
newBucket(NewBucketRequest request)
Create a bucket.
|
ObsFSFile |
newFile(NewFileRequest request)
Create a file.
|
ObsFSFolder |
newFolder(NewFolderRequest request)
Create a folder.
|
OptionsInfoResult |
optionsBucket(String bucketName,
OptionsInfoRequest optionInfo)
已过时。
|
OptionsInfoResult |
optionsObject(String bucketName,
String objectKey,
OptionsInfoRequest optionInfo)
已过时。
|
PutObjectResult |
putObject(PutObjectRequest request)
Upload an object.
|
PutObjectResult |
putObject(String bucketName,
String objectKey,
File file)
Upload an object.
|
PutObjectResult |
putObject(String bucketName,
String objectKey,
File file,
ObjectMetadata metadata)
Upload an object.
|
PutObjectResult |
putObject(String bucketName,
String objectKey,
InputStream input)
Upload an object.
|
PutObjectResult |
putObject(String bucketName,
String objectKey,
InputStream input,
ObjectMetadata metadata)
Upload an object.
|
UploadProgressStatus |
putObjects(PutObjectsRequest request) |
ReadAheadQueryResult |
queryReadAheadObjectsTask(String bucketName,
String taskId)
Query the progress of a read-ahead task.
|
ReadAheadResult |
readAheadObjects(ReadAheadRequest request)
Read ahead objects.
|
ReadFileResult |
readFile(ReadFileRequest request)
Obtain the file content.
|
void |
refresh(String accessKey,
String secretKey,
String securityToken)
Refresh the temporary access key.
|
RenameResult |
renameFile(RenameRequest request)
Rename a file.
|
RenameResult |
renameFolder(RenameRequest request)
Rename a folder.
|
RestoreObjectRequest.RestoreObjectStatus |
restoreObject(RestoreObjectRequest request)
已过时。
|
TaskProgressStatus |
restoreObjects(RestoreObjectsRequest request)
Restore Archive objects in a batch.
|
RestoreObjectResult |
restoreObjectV2(RestoreObjectRequest request)
Restore an Archive object.
|
HeaderResponse |
setBucketAcl(String bucketName,
AccessControlList acl)
Set a bucket ACL.
|
HeaderResponse |
setBucketAcl(String bucketName,
String cannedACL,
AccessControlList acl)
已过时。
|
HeaderResponse |
setBucketCors(String bucketName,
BucketCors bucketCors)
Configure the bucket CORS.
|
HeaderResponse |
setBucketCors(String bucketName,
S3BucketCors s3BucketCors)
已过时。
|
HeaderResponse |
setBucketDirectColdAccess(String bucketName,
BucketDirectColdAccess access)
Set the direct reading policy for Archive objects in a bucket.
|
HeaderResponse |
setBucketEncryption(String bucketName,
BucketEncryption bucketEncryption)
Set bucket encryption.
|
HeaderResponse |
setBucketFSStatus(SetBucketFSStatusRequest request)
Specify whether to enable the file gateway feature for the bucket.
|
HeaderResponse |
setBucketLifecycle(String bucketName,
LifecycleConfiguration lifecycleConfig)
Set the bucket lifecycle rules.
|
HeaderResponse |
setBucketLifecycleConfiguration(String bucketName,
LifecycleConfiguration lifecycleConfig)
已过时。
|
HeaderResponse |
setBucketLogging(String bucketName,
BucketLoggingConfiguration loggingConfiguration)
Configure logging for a bucket.
|
HeaderResponse |
setBucketLoggingConfiguration(String bucketName,
BucketLoggingConfiguration loggingConfiguration)
已过时。
|
HeaderResponse |
setBucketLoggingConfiguration(String bucketName,
BucketLoggingConfiguration loggingConfiguration,
boolean updateTargetACLifRequired) |
HeaderResponse |
setBucketNotification(String bucketName,
BucketNotificationConfiguration bucketNotificationConfiguration)
Configure bucket notification.
|
HeaderResponse |
setBucketPolicy(String bucketName,
String policy)
Set bucket policies.
|
HeaderResponse |
setBucketQuota(String bucketName,
BucketQuota bucketQuota)
Set the bucket quota.
|
HeaderResponse |
setBucketReplication(String bucketName,
ReplicationConfiguration replicationConfiguration)
Configure cross-region replication for a bucket.
|
HeaderResponse |
setBucketReplicationConfiguration(String bucketName,
ReplicationConfiguration replicationConfiguration)
已过时。
|
HeaderResponse |
setBucketStoragePolicy(String bucketName,
BucketStoragePolicyConfiguration bucketStorage)
Set the bucket storage class.
|
HeaderResponse |
setBucketTagging(String bucketName,
BucketTagInfo bucketTagInfo)
Set bucket tags.
|
HeaderResponse |
setBucketVersioning(String bucketName,
BucketVersioningConfiguration versioningConfiguration)
Set the versioning status for a bucket.
|
HeaderResponse |
setBucketVersioning(String bucketName,
String status)
已过时。
|
HeaderResponse |
setBucketWebsite(String bucketName,
WebsiteConfiguration websiteConfig)
Configure website hosting for a bucket.
|
HeaderResponse |
setBucketWebsiteConfiguration(String bucketName,
WebsiteConfiguration websiteConfig)
已过时。
|
HeaderResponse |
setObjectAcl(String bucketName,
String objectKey,
AccessControlList acl)
Set an object ACL.
|
HeaderResponse |
setObjectAcl(String bucketName,
String objectKey,
AccessControlList acl,
String versionId)
Set an object ACL.
|
HeaderResponse |
setObjectAcl(String bucketName,
String objectKey,
String cannedACL,
AccessControlList acl,
String versionId)
已过时。
|
ObjectMetadata |
setObjectMetadata(SetObjectMetadataRequest request)
Set object properties.
|
TruncateFileResult |
truncateFile(TruncateFileRequest request)
Truncate a file.
|
CompleteMultipartUploadResult |
uploadFile(UploadFileRequest uploadFileRequest)
Upload a file.
|
UploadPartResult |
uploadPart(String bucketName,
String objectKey,
String uploadId,
int partNumber,
File file)
Upload a part.
|
UploadPartResult |
uploadPart(String bucketName,
String objectKey,
String uploadId,
int partNumber,
InputStream input)
Upload a part.
|
UploadPartResult |
uploadPart(UploadPartRequest request)
Upload a part.
|
ObsFSFile |
writeFile(WriteFileRequest request)
Write data to a file.
|
_createPostSignature, _createTemporarySignature, abortMultipartUploadImpl, appendObjectImpl, completeMultipartUploadImpl, copyObjectImpl, copyPartImpl, createBucketImpl, createFetchJobImpl, createRequestBody, createV4TemporarySignature, deleteBucketCorsImpl, deleteBucketDirectColdAccessImpl, deleteBucketEncryptionImpl, deleteBucketImpl, deleteBucketLifecycleConfigurationImpl, deleteBucketPolicyImpl, deleteBucketReplicationConfigurationImpl, deleteBucketTaggingImpl, deleteBucketWebsiteConfigurationImpl, deleteDisPolicyImpl, deleteExtensionPolicyImpl, deleteObjectImpl, deleteObjectsImpl, DeleteReadAheadObjectsImpl, doesObjectExistImpl, getApiVersion, getBucketAclImpl, getBucketCorsImpl, getBucketDirectColdAccessImpl, getBucketEncryptionImpl, getBucketLifecycleConfigurationImpl, getBucketLocationImpl, getBucketLoggingConfigurationImpl, getBucketMetadataImpl, getBucketNotificationConfigurationImpl, getBucketPolicyImpl, getBucketQuotaImpl, getBucketReplicationConfigurationImpl, getBucketStorageInfoImpl, getBucketStoragePolicyImpl, getBucketTaggingImpl, getBucketVersioningImpl, getBucketWebsiteConfigurationImpl, getCredential, getDisPolicyImpl, getObjectAclImpl, getObjectImpl, getObjectImpl, getObjectMetadataImpl, headBucketImpl, initiateMultipartUploadImpl, initThreadPool, listAllBucketsImpl, listMultipartUploadsImpl, listObjectsImpl, listPartsImpl, listVersionsImpl, optionsImpl, putDisPolicyImpl, putObjectImpl, queryExtensionPolicyImpl, queryFetchJobImpl, queryReadAheadObjectsTaskImpl, readAheadObjectsImpl, recordBulkTaskStatus, renameObjectImpl, restoreObjectImpl, restoreObjectV2Impl, setBucketAclImpl, setBucketCorsImpl, setBucketDirectColdAccessImpl, setBucketEncryptionImpl, setBucketFSStatusImpl, setBucketLifecycleConfigurationImpl, setBucketLoggingConfigurationImpl, setBucketNotificationImpl, setBucketPolicyImpl, setBucketQuotaImpl, setBucketReplicationConfigurationImpl, setBucketStorageImpl, setBucketTaggingImpl, setBucketVersioningImpl, setBucketWebsiteConfigurationImpl, setExtensionPolicyImpl, setObjectAclImpl, setObjectMetadataImpl, truncateFileImpl, uploadPartImpl, verifyResponseContentType, verifyResponseContentTypeForJson, writeFileImpladdRequestHeadersToConnection, addRequestParametersToUrlPath, addRequestParametersToUrlPath, authorizeHttpRequest, convertHeadersToMap, getApiVersionCache, getEndpoint, getFileSystemDelimiter, getHttpPort, getHttpsOnly, getHttpsPort, getIConvertor, getIHeaders, getProviderCredentials, getRestHeaderPrefix, getRestMetadataPrefix, getXmlResponseSaxParser, initHttpClient, isAuthTypeNegotiation, isCname, isKeepAlive, isPathStyle, performRequest, performRequest, performRequest, performRequestAsync, performRequestAsync, performRequestAsync, performRequesttWithoutSignatureAsync, performRequestWithoutSignature, performRestDelete, performRestDelete, performRestDelete, performRestDelete, performRestForApiVersion, performRestGet, performRestGet, performRestGetForListBuckets, performRestHead, performRestOptions, performRestPost, performRestPost, performRestPut, performRestPut, renameMetadataKeys, retryRequest, setProviderCredentials, setupConnection, setupConnection, setupConnection, shutdown, shutdownImpl, sleepOnInternalErrorpublic ObsClient(String endPoint)
endPoint - OBS endpointpublic ObsClient(ObsConfiguration config)
config - Configuration parameters of ObsClientpublic ObsClient(String accessKey, String secretKey, String endPoint)
accessKey - AK in the access keysecretKey - SK in the access keyendPoint - OBS endpointpublic ObsClient(String accessKey, String secretKey, ObsConfiguration config)
accessKey - AK in the access keysecretKey - SK in the access keyconfig - Configuration parameters of ObsClientpublic ObsClient(String accessKey, String secretKey, String securityToken, String endPoint)
accessKey - AK in the temporary access keysecretKey - SK in the temporary access keysecurityToken - Security tokenendPoint - OBS endpointpublic ObsClient(String accessKey, String secretKey, String securityToken, ObsConfiguration config)
accessKey - AK in the temporary access keysecretKey - SK in the temporary access keysecurityToken - Security tokenconfig - Configuration parameters of ObsClientpublic ObsClient(IObsCredentialsProvider provider, String endPoint)
public ObsClient(IObsCredentialsProvider provider, ObsConfiguration config)
public void refresh(String accessKey, String secretKey, String securityToken)
IObsClientrefresh 在接口中 IObsClientaccessKey - AK in the temporary access keysecretKey - SK in the temporary access keysecurityToken - Security token@Deprecated public String createSignedUrl(HttpMethodEnum method, String bucketName, String objectKey, SpecialParamEnum specialParam, Date expiryTime, Map<String,String> headers, Map<String,Object> queryParams) throws ObsException
method - HTTP request methodbucketName - Bucket nameobjectKey - Object namespecialParam - Special operatorexpiryTime - Time when the temporary authentication expiresheaders - Header informationqueryParams - Query parameter informationObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails@Deprecated public String createSignedUrl(HttpMethodEnum method, String bucketName, String objectKey, SpecialParamEnum specialParam, long expires, Map<String,String> headers, Map<String,Object> queryParams)
method - HTTP request methodbucketName - Bucket nameobjectKey - Object namespecialParam - Special operatorexpires - Time when the temporary authentication expires. The unit is second and the default value is 300.headers - Header informationqueryParams - Query parameter informationObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails@Deprecated public V4TemporarySignatureResponse createV4TemporarySignature(V4TemporarySignatureRequest request)
@Deprecated public V4PostSignatureResponse createV4PostSignature(String acl, String contentType, long expires, String bucketName, String objectKey) throws ObsException
ObsException@Deprecated public V4PostSignatureResponse createV4PostSignature(long expires, String bucketName, String objectKey) throws ObsException
ObsException@Deprecated public V4PostSignatureResponse createV4PostSignature(V4PostSignatureRequest request) throws ObsException
ObsExceptionpublic TemporarySignatureResponse createTemporarySignature(TemporarySignatureRequest request)
IObsClientcreateTemporarySignature 在接口中 IObsClientrequest - Parameters in a request for temporarily authorized accesspublic TemporarySignatureResponse createGetTemporarySignature(String bucketName, String objectKey, String prefix, Date expiryDate, Map<String,String> headers, Map<String,Object> queryParams)
bucketName - Bucket nameobjectKey - Object nameprefix - Object name prefixexpiryDate - Expiration date (ISO 8601 UTC)headers - Header informationqueryParams - Query parameter informationObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic TemporarySignatureResponse createGetTemporarySignature(String bucketName, String objectKey, String prefix, long expires, Map<String,String> headers, Map<String,Object> queryParams)
bucketName - Bucket nameobjectKey - Object nameprefix - Object name prefixexpires - Validity period (seconds)headers - Header informationqueryParams - Query parameter informationObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic PostSignatureResponse createPostSignature(String acl, String contentType, long expires, String bucketName, String objectKey) throws ObsException
acl - Object ACLcontentType - MIME type of the objectexpires - Validity period (in seconds)bucketName - Bucket nameobjectKey - Object nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic PostSignatureResponse createPostSignature(long expires, String bucketName, String objectKey) throws ObsException
expires - Validity period (in seconds)bucketName - Bucket nameobjectKey - Object nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic PostSignatureResponse createPostSignature(PostSignatureRequest request) throws ObsException
IObsClientcreatePostSignature 在接口中 IObsClientrequest - Request parameters for V4 browser-based authorized accessObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ObsBucket createBucket(String bucketName) throws ObsException
IObsClientBucket naming rules:
createBucket 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ObsBucket createBucket(String bucketName, String location) throws ObsException
IObsClientBucket naming rules:
createBucket 在接口中 IObsClientbucketName - Bucket namelocation - Bucket location. This parameter is mandatory unless the endpoint belongs to the default region.ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ObsBucket createBucket(ObsBucket bucket) throws ObsException
IObsClientBucket naming rules:
createBucket 在接口中 IObsClientbucket - Bucket information, including the request parametersObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ObsBucket createBucket(CreateBucketRequest request) throws ObsException
IObsClientBucket naming rules:
createBucket 在接口中 IObsClientrequest - Request parameters for creating a bucketObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails@Deprecated public ObsBucket createBucket(S3Bucket bucket) throws ObsException
ObsException@Deprecated public List<S3Bucket> listBuckets() throws ObsException
ObsExceptionpublic List<ObsBucket> listBuckets(ListBucketsRequest request) throws ObsException
IObsClientlistBuckets 在接口中 IObsClientrequest - Obtain the request parameters for obtaining the bucket list.ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ListBucketsResult listBucketsV2(ListBucketsRequest request) throws ObsException
IObsClientlistBucketsV2 在接口中 IObsClientrequest - Obtain the request parameters for obtaining the bucket list.ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic HeaderResponse deleteBucket(String bucketName) throws ObsException
IObsClientdeleteBucket 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ObjectListing listObjects(ListObjectsRequest request) throws ObsException
IObsClientlistObjects 在接口中 IObsClientrequest - Request parameters for listing objects in a bucketObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ObjectListing listObjects(String bucketName) throws ObsException
IObsClientlistObjects 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic boolean headBucket(String bucketName) throws ObsException
IObsClientheadBucket 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails@Deprecated public ListVersionsResult listVersions(String bucketName, String prefix, String delimiter, String keyMarker, String versionIdMarker, long maxKeys, String nextVersionIdMarker) throws ObsException
bucketName - Bucket nameprefix - Object name prefix used for listing versioning objectsdelimiter - Character for grouping object nameskeyMarker - Start position for listing versioning objects (sorted by object name)versionIdMarker - Start position for listing versioning objects (sorted by version ID)maxKeys - Maximum number of versioning objects to be listednextVersionIdMarker - Deprecated fieldObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ListVersionsResult listVersions(ListVersionsRequest request) throws ObsException
IObsClientlistVersions 在接口中 IObsClientrequest - Request parameters for listing versioning objects in the bucketObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ListVersionsResult listVersions(String bucketName) throws ObsException
IObsClientlistVersions 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ListVersionsResult listVersions(String bucketName, long maxKeys) throws ObsException
IObsClientlistVersions 在接口中 IObsClientbucketName - Bucket namemaxKeys - Maximum number of versioning objects to be listedObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ListVersionsResult listVersions(String bucketName, String prefix, String delimiter, String keyMarker, String versionIdMarker, long maxKeys) throws ObsException
IObsClientlistVersions 在接口中 IObsClientbucketName - Bucket nameprefix - Object name prefix used for listing versioning objectsdelimiter - Character for grouping object nameskeyMarker - Start position for listing versioning objects (sorted by object name)versionIdMarker - Start position for listing versioning objects (sorted by version ID)maxKeys - Maximum number of versioning objects to be listedObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic BucketMetadataInfoResult getBucketMetadata(BucketMetadataInfoRequest request) throws ObsException
IObsClientgetBucketMetadata 在接口中 IObsClientrequest - Request parameters for obtaining bucket metadataObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic AccessControlList getBucketAcl(String bucketName) throws ObsException
IObsClientgetBucketAcl 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails@Deprecated public HeaderResponse setBucketAcl(String bucketName, String cannedACL, AccessControlList acl) throws ObsException
bucketName - Bucket namecannedACL - Pre-defined access control policyacl - ACL ("acl" and "cannedACL" cannot be used together.)ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic HeaderResponse setBucketAcl(String bucketName, AccessControlList acl) throws ObsException
IObsClientsetBucketAcl 在接口中 IObsClientbucketName - Bucket nameacl - ACLObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic String getBucketLocation(String bucketName) throws ObsException
IObsClientgetBucketLocation 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic BucketLocationResponse getBucketLocationV2(String bucketName) throws ObsException
IObsClientgetBucketLocationV2 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic BucketStorageInfo getBucketStorageInfo(String bucketName) throws ObsException
IObsClientgetBucketStorageInfo 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic BucketQuota getBucketQuota(String bucketName) throws ObsException
IObsClientgetBucketQuota 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic HeaderResponse setBucketQuota(String bucketName, BucketQuota bucketQuota) throws ObsException
IObsClientsetBucketQuota 在接口中 IObsClientbucketName - Bucket namebucketQuota - Bucket quotaObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic BucketStoragePolicyConfiguration getBucketStoragePolicy(String bucketName) throws ObsException
IObsClientgetBucketStoragePolicy 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic HeaderResponse setBucketStoragePolicy(String bucketName, BucketStoragePolicyConfiguration bucketStorage) throws ObsException
IObsClientsetBucketStoragePolicy 在接口中 IObsClientbucketName - Bucket namebucketStorage - Bucket storage policyObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic HeaderResponse setBucketCors(String bucketName, BucketCors bucketCors) throws ObsException
IObsClientsetBucketCors 在接口中 IObsClientbucketName - Bucket namebucketCors - CORS rulesObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails@Deprecated public HeaderResponse setBucketCors(String bucketName, S3BucketCors s3BucketCors) throws ObsException
ObsExceptionpublic BucketCors getBucketCors(String bucketName) throws ObsException
IObsClientgetBucketCors 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic HeaderResponse deleteBucketCors(String bucketName) throws ObsException
IObsClientdeleteBucketCors 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails@Deprecated public OptionsInfoResult optionsBucket(String bucketName, OptionsInfoRequest optionInfo) throws ObsException
bucketName - Bucket nameoptionInfo - Parameters in a bucket preflight requestObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails@Deprecated public OptionsInfoResult optionsObject(String bucketName, String objectKey, OptionsInfoRequest optionInfo) throws ObsException
bucketName - Bucket nameobjectKey - Object nameoptionInfo - Parameters in an object preflight requestObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails@Deprecated public BucketLoggingConfiguration getBucketLoggingConfiguration(String bucketName) throws ObsException
bucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic BucketLoggingConfiguration getBucketLogging(String bucketName) throws ObsException
IObsClientgetBucketLogging 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic HeaderResponse setBucketLoggingConfiguration(String bucketName, BucketLoggingConfiguration loggingConfiguration, boolean updateTargetACLifRequired) throws ObsException
setBucketLoggingConfiguration 在接口中 IObsClientObsException@Deprecated public HeaderResponse setBucketLoggingConfiguration(String bucketName, BucketLoggingConfiguration loggingConfiguration) throws ObsException
ObsExceptionpublic HeaderResponse setBucketLogging(String bucketName, BucketLoggingConfiguration loggingConfiguration) throws ObsException
IObsClientsetBucketLogging 在接口中 IObsClientbucketName - Bucket nameloggingConfiguration - Logging settingsObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails@Deprecated public HeaderResponse setBucketVersioning(String bucketName, String status) throws ObsException
ObsExceptionpublic HeaderResponse setBucketVersioning(String bucketName, BucketVersioningConfiguration versioningConfiguration) throws ObsException
IObsClientsetBucketVersioning 在接口中 IObsClientbucketName - Bucket nameversioningConfiguration - Versioning status of the bucketObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic BucketVersioningConfiguration getBucketVersioning(String bucketName) throws ObsException
IObsClientgetBucketVersioning 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails@Deprecated public LifecycleConfiguration getBucketLifecycleConfiguration(String bucketName) throws ObsException
ObsExceptionpublic LifecycleConfiguration getBucketLifecycle(String bucketName) throws ObsException
IObsClientgetBucketLifecycle 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails@Deprecated public HeaderResponse setBucketLifecycleConfiguration(String bucketName, LifecycleConfiguration lifecycleConfig) throws ObsException
ObsExceptionpublic HeaderResponse setBucketLifecycle(String bucketName, LifecycleConfiguration lifecycleConfig) throws ObsException
IObsClientsetBucketLifecycle 在接口中 IObsClientbucketName - Bucket namelifecycleConfig - Bucket lifecycle rulesObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails@Deprecated public HeaderResponse deleteBucketLifecycleConfiguration(String bucketName) throws ObsException
ObsExceptionpublic HeaderResponse deleteBucketLifecycle(String bucketName) throws ObsException
IObsClientdeleteBucketLifecycle 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic String getBucketPolicy(String bucketName) throws ObsException
IObsClientgetBucketPolicy 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic BucketPolicyResponse getBucketPolicyV2(String bucketName) throws ObsException
IObsClientgetBucketPolicyV2 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic HeaderResponse setBucketPolicy(String bucketName, String policy) throws ObsException
IObsClientsetBucketPolicy 在接口中 IObsClientbucketName - Bucket namepolicy - Bucket policy, in the JSON formatObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic HeaderResponse deleteBucketPolicy(String bucketName) throws ObsException
IObsClientdeleteBucketPolicy 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails@Deprecated public WebsiteConfiguration getBucketWebsiteConfiguration(String bucketName) throws ObsException
ObsExceptionpublic WebsiteConfiguration getBucketWebsite(String bucketName) throws ObsException
IObsClientgetBucketWebsite 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails@Deprecated public HeaderResponse setBucketWebsiteConfiguration(String bucketName, WebsiteConfiguration websiteConfig) throws ObsException
ObsExceptionpublic HeaderResponse setBucketWebsite(String bucketName, WebsiteConfiguration websiteConfig) throws ObsException
IObsClientsetBucketWebsite 在接口中 IObsClientbucketName - Bucket namewebsiteConfig - Website hosting configuration of a bucketObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails@Deprecated public HeaderResponse deleteBucketWebsiteConfiguration(String bucketName) throws ObsException
ObsExceptionpublic HeaderResponse deleteBucketWebsite(String bucketName) throws ObsException
IObsClientdeleteBucketWebsite 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic BucketTagInfo getBucketTagging(String bucketName) throws ObsException
IObsClientgetBucketTagging 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic HeaderResponse setBucketTagging(String bucketName, BucketTagInfo bucketTagInfo) throws ObsException
IObsClientsetBucketTagging 在接口中 IObsClientbucketName - Bucket namebucketTagInfo - Bucket tagsObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic HeaderResponse deleteBucketTagging(String bucketName) throws ObsException
IObsClientdeleteBucketTagging 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic BucketEncryption getBucketEncryption(String bucketName) throws ObsException
IObsClientgetBucketEncryption 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic HeaderResponse setBucketEncryption(String bucketName, BucketEncryption bucketEncryption) throws ObsException
IObsClientsetBucketEncryption 在接口中 IObsClientbucketName - Bucket namebucketEncryption - Bucket encryption configurationObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic HeaderResponse deleteBucketEncryption(String bucketName) throws ObsException
IObsClientdeleteBucketEncryption 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails@Deprecated public HeaderResponse setBucketReplicationConfiguration(String bucketName, ReplicationConfiguration replicationConfiguration) throws ObsException
ObsExceptionpublic HeaderResponse setBucketReplication(String bucketName, ReplicationConfiguration replicationConfiguration) throws ObsException
IObsClientsetBucketReplication 在接口中 IObsClientbucketName - Bucket namereplicationConfiguration - Cross-region replication configurationObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails@Deprecated public ReplicationConfiguration getBucketReplicationConfiguration(String bucketName) throws ObsException
ObsExceptionpublic ReplicationConfiguration getBucketReplication(String bucketName) throws ObsException
IObsClientgetBucketReplication 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails@Deprecated public HeaderResponse deleteBucketReplicationConfiguration(String bucketName) throws ObsException
ObsExceptionpublic HeaderResponse deleteBucketReplication(String bucketName) throws ObsException
IObsClientdeleteBucketReplication 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic BucketNotificationConfiguration getBucketNotification(String bucketName) throws ObsException
IObsClientgetBucketNotification 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic HeaderResponse setBucketNotification(String bucketName, BucketNotificationConfiguration bucketNotificationConfiguration) throws ObsException
IObsClientsetBucketNotification 在接口中 IObsClientbucketName - Bucket namebucketNotificationConfiguration - Bucket notification configurationObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic PutObjectResult putObject(String bucketName, String objectKey, InputStream input, ObjectMetadata metadata) throws ObsException
IObsClientputObject 在接口中 IObsClientbucketName - Bucket nameobjectKey - Object nameinput - Data stream to be uploadedmetadata - Object propertiesObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic PutObjectResult putObject(String bucketName, String objectKey, InputStream input) throws ObsException
IObsClientputObject 在接口中 IObsClientbucketName - Bucket nameobjectKey - Object nameinput - Data stream to be uploadedObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic PutObjectResult putObject(PutObjectRequest request) throws ObsException
IObsClientputObject 在接口中 IObsClientrequest - Parameters in an object upload requestObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic PutObjectResult putObject(String bucketName, String objectKey, File file) throws ObsException
IObsClientputObject 在接口中 IObsClientbucketName - Bucket nameobjectKey - Object namefile - File to be uploadedObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic PutObjectResult putObject(String bucketName, String objectKey, File file, ObjectMetadata metadata) throws ObsException
IObsClientputObject 在接口中 IObsClientbucketName - Bucket nameobjectKey - Object namefile - File to be uploadedmetadata - Object propertiesObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic AppendObjectResult appendObject(AppendObjectRequest request) throws ObsException
IObsClientappendObject 在接口中 IObsClientrequest - Parameters in an appendable upload requestObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic CompleteMultipartUploadResult uploadFile(UploadFileRequest uploadFileRequest) throws ObsException
IObsClientuploadFile 在接口中 IObsClientuploadFileRequest - Parameters in a file upload requestObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic DownloadFileResult downloadFile(DownloadFileRequest downloadFileRequest) throws ObsException
IObsClientdownloadFile 在接口中 IObsClientdownloadFileRequest - Parameters in a request for downloading a fileObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ObsObject getObject(GetObjectRequest request) throws ObsException
IObsClientgetObject 在接口中 IObsClientrequest - Parameters in an object download requestObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ObsObject getObject(String bucketName, String objectKey, String versionId) throws ObsException
IObsClientgetObject 在接口中 IObsClientbucketName - Bucket nameobjectKey - Object nameversionId - Object version IDObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ObsObject getObject(String bucketName, String objectKey) throws ObsException
IObsClientgetObject 在接口中 IObsClientbucketName - Bucket nameobjectKey - Object nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ObjectMetadata getObjectMetadata(GetObjectMetadataRequest request) throws ObsException
IObsClientgetObjectMetadata 在接口中 IObsClientrequest - Parameters in a request for obtaining the properties of an objectObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ObjectMetadata setObjectMetadata(SetObjectMetadataRequest request) throws ObsException
IObsClientsetObjectMetadata 在接口中 IObsClientrequest - Parameters in the request for obtaining object propertiesObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ObjectMetadata getObjectMetadata(String bucketName, String objectKey, String versionId) throws ObsException
IObsClientgetObjectMetadata 在接口中 IObsClientbucketName - Bucket nameobjectKey - Object nameversionId - Object version IDObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ObjectMetadata getObjectMetadata(String bucketName, String objectKey) throws ObsException
IObsClientgetObjectMetadata 在接口中 IObsClientbucketName - Bucket nameobjectKey - Object nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails@Deprecated public RestoreObjectRequest.RestoreObjectStatus restoreObject(RestoreObjectRequest request) throws ObsException
IObsClientrestoreObject 在接口中 IObsClientrequest - Parameters in a request for restoring an Archive objectObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic RestoreObjectResult restoreObjectV2(RestoreObjectRequest request) throws ObsException
IObsClientrestoreObjectV2 在接口中 IObsClientrequest - Request parameters for restoring an Archive objectObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic TaskProgressStatus restoreObjects(RestoreObjectsRequest request) throws ObsException
IObsClientrestoreObjects 在接口中 IObsClientrequest - Request parameters for restoring Archive objects in a batchObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic UploadProgressStatus putObjects(PutObjectsRequest request) throws ObsException
putObjects 在接口中 IObsClientObsExceptionpublic TaskProgressStatus dropFolder(DropFolderRequest request) throws ObsException
IFSClientdropFolder 在接口中 IFSClientrequest - Request parameters for deleting a folderObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic DeleteObjectResult deleteObject(String bucketName, String objectKey, String versionId) throws ObsException
IObsClientdeleteObject 在接口中 IObsClientbucketName - Bucket nameobjectKey - Object nameversionId - Object version IDObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic DeleteObjectResult deleteObject(String bucketName, String objectKey) throws ObsException
IObsClientdeleteObject 在接口中 IObsClientbucketName - Bucket nameobjectKey - Object nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic DeleteObjectsResult deleteObjects(DeleteObjectsRequest deleteObjectsRequest) throws ObsException
IObsClientdeleteObjects 在接口中 IObsClientdeleteObjectsRequest - Parameters in an object batch deletion requestObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic AccessControlList getObjectAcl(String bucketName, String objectKey, String versionId) throws ObsException
IObsClientgetObjectAcl 在接口中 IObsClientbucketName - Bucket nameobjectKey - Object nameversionId - Object version IDObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic AccessControlList getObjectAcl(String bucketName, String objectKey) throws ObsException
IObsClientgetObjectAcl 在接口中 IObsClientbucketName - Bucket nameobjectKey - Object nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails@Deprecated public HeaderResponse setObjectAcl(String bucketName, String objectKey, String cannedACL, AccessControlList acl, String versionId) throws ObsException
bucketName - Bucket nameobjectKey - Object namecannedACL - Pre-defined access control policyacl - ACL ("acl" and "cannedACL" cannot be used together.)versionId - Object version IDObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic HeaderResponse setObjectAcl(String bucketName, String objectKey, AccessControlList acl, String versionId) throws ObsException
IObsClientsetObjectAcl 在接口中 IObsClientbucketName - Bucket nameobjectKey - Object nameacl - ACLversionId - Object version IDObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic HeaderResponse setObjectAcl(String bucketName, String objectKey, AccessControlList acl) throws ObsException
IObsClientsetObjectAcl 在接口中 IObsClientbucketName - Bucket nameobjectKey - Object nameacl - ACLObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic CopyObjectResult copyObject(CopyObjectRequest request) throws ObsException
IObsClientcopyObject 在接口中 IObsClientrequest - Parameters in a request for copying an objectObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic CopyObjectResult copyObject(String sourceBucketName, String sourceObjectKey, String destBucketName, String destObjectKey) throws ObsException
IObsClientcopyObject 在接口中 IObsClientsourceBucketName - Source bucket namesourceObjectKey - Source object namedestBucketName - Destination bucket namedestObjectKey - Destination object nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic InitiateMultipartUploadResult initiateMultipartUpload(InitiateMultipartUploadRequest request) throws ObsException
IObsClientinitiateMultipartUpload 在接口中 IObsClientrequest - Parameters in a request for initializing a multipart uploadObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic HeaderResponse abortMultipartUpload(AbortMultipartUploadRequest request) throws ObsException
IObsClientabortMultipartUpload 在接口中 IObsClientrequest - Parameters in a request for aborting a multipart uploadObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic UploadPartResult uploadPart(String bucketName, String objectKey, String uploadId, int partNumber, InputStream input) throws ObsException
IObsClientuploadPart 在接口中 IObsClientbucketName - Bucket nameobjectKey - Object nameuploadId - Multipart upload IDpartNumber - Part numberinput - Data stream to be uploadedObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic UploadPartResult uploadPart(String bucketName, String objectKey, String uploadId, int partNumber, File file) throws ObsException
IObsClientuploadPart 在接口中 IObsClientbucketName - Bucket nameobjectKey - Object nameuploadId - Multipart upload IDpartNumber - Part numberfile - File to be uploadedObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic UploadPartResult uploadPart(UploadPartRequest request) throws ObsException
IObsClientuploadPart 在接口中 IObsClientrequest - Parameters in a part upload requestObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic CopyPartResult copyPart(CopyPartRequest request) throws ObsException
IObsClientcopyPart 在接口中 IObsClientrequest - Parameters in the request for copying a partObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic CompleteMultipartUploadResult completeMultipartUpload(CompleteMultipartUploadRequest request) throws ObsException
IObsClientcompleteMultipartUpload 在接口中 IObsClientrequest - Parameters in a request for combining partsObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ListPartsResult listParts(ListPartsRequest request) throws ObsException
IObsClientlistParts 在接口中 IObsClientrequest - Parameters in a request for listing uploaded partsObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic MultipartUploadListing listMultipartUploads(ListMultipartUploadsRequest request) throws ObsException
IObsClientlistMultipartUploads 在接口中 IObsClientrequest - Parameters in a request for listing multipart uploadsObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ObsFSBucket newBucket(NewBucketRequest request) throws ObsException
IFSClientnewBucket 在接口中 IFSClientrequest - Request parameters for creating a bucketObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ObsFSFile newFile(NewFileRequest request) throws ObsException
IFSClientnewFile 在接口中 IFSClientrequest - Request parameters for creating a fileObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ObsFSFolder newFolder(NewFolderRequest request) throws ObsException
IFSClientnewFolder 在接口中 IFSClientrequest - Request parameters for creating a folderObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ObsFSAttribute getAttribute(GetAttributeRequest request) throws ObsException
IFSClientgetAttribute 在接口中 IFSClientrequest - Request parameters for obtaining filer or folder propertiesObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ReadFileResult readFile(ReadFileRequest request) throws ObsException
IFSClientreadFile 在接口中 IFSClientrequest - Request parameters for obtaining the file contentObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ObsFSFile writeFile(WriteFileRequest request) throws ObsException
IFSClientwriteFile 在接口中 IFSClientrequest - Request parameters for writing data to a fileObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ObsFSFile appendFile(WriteFileRequest request) throws ObsException
IFSClientappendFile 在接口中 IFSClientrequest - Request parameters for writing data to a fileObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic RenameResult renameFile(RenameRequest request) throws ObsException
IFSClientrenameFile 在接口中 IFSClientrequest - Request parameters for renaming a fileObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic RenameResult renameFolder(RenameRequest request) throws ObsException
IFSClientrenameFolder 在接口中 IFSClientrequest - Request parameters for renaming a folderObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic TruncateFileResult truncateFile(TruncateFileRequest request) throws ObsException
IFSClienttruncateFile 在接口中 IFSClientrequest - Request parameters for truncating a fileObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic HeaderResponse setBucketFSStatus(SetBucketFSStatusRequest request) throws ObsException
IFSClientsetBucketFSStatus 在接口中 IFSClientrequest - Request parameters for specifying whether to enable the file gateway feature for the bucketObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic GetBucketFSStatusResult getBucketFSStatus(GetBucketFSStatusRequest request) throws ObsException
IFSClientgetBucketFSStatus 在接口中 IFSClientrequest - Request parameters for checking whether the file gateway feature is enabled for the bucketObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic DropFileResult dropFile(DropFileRequest request) throws ObsException
IFSClientdropFile 在接口中 IFSClientrequest - Request parameters for deleting a fileObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ReadAheadResult readAheadObjects(ReadAheadRequest request) throws ObsException
IObsClientreadAheadObjects 在接口中 IObsClientrequest - Request parameters for reading ahead objectsObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ReadAheadResult deleteReadAheadObjects(String bucketName, String prefix) throws ObsException
IObsClientdeleteReadAheadObjects 在接口中 IObsClientbucketName - Bucket nameprefix - Name prefix of objects to be read aheadObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ReadAheadQueryResult queryReadAheadObjectsTask(String bucketName, String taskId) throws ObsException
IObsClientqueryReadAheadObjectsTask 在接口中 IObsClientbucketName - Bucket nametaskId - ID of the read-ahead taskObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic HeaderResponse setBucketDirectColdAccess(String bucketName, BucketDirectColdAccess access) throws ObsException
IObsClientsetBucketDirectColdAccess 在接口中 IObsClientbucketName - Bucket nameaccess - Direct reading policyObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic BucketDirectColdAccess getBucketDirectColdAccess(String bucketName) throws ObsException
IObsClientgetBucketDirectColdAccess 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic HeaderResponse deleteBucketDirectColdAccess(String bucketName) throws ObsException
IObsClientdeleteBucketDirectColdAccess 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic boolean doesObjectExist(String buckeName, String objectKey) throws ObsException
doesObjectExist 在接口中 IObsClientObsExceptionpublic boolean doesObjectExist(GetObjectMetadataRequest request) throws ObsException
doesObjectExist 在接口中 IObsClientObsExceptionpublic void close()
throws IOException
IObsClientclose 在接口中 IFSClientclose 在接口中 IObsClientclose 在接口中 Closeableclose 在接口中 AutoCloseableIOException - ObsClient close exceptionpublic String base64Md5(InputStream is, long length, long offset) throws NoSuchAlgorithmException, IOException
public String base64Md5(InputStream is) throws NoSuchAlgorithmException, IOException
Copyright © 2019. All rights reserved.