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
|
abortMultipartUploadImpl, appendObjectImpl, completeMultipartUploadImpl, copyObjectImpl, copyPartImpl, createBucketImpl, createFetchJobImpl, createPostSignatureResponse, createTemporarySignatureResponse, createV4TemporarySignature, deleteBucketCorsImpl, deleteBucketDirectColdAccessImpl, deleteBucketEncryptionImpl, deleteBucketImpl, deleteBucketLifecycleConfigurationImpl, deleteBucketPolicyImpl, deleteBucketReplicationConfigurationImpl, deleteBucketTaggingImpl, deleteBucketWebsiteConfigurationImpl, deleteDisPolicyImpl, deleteExtensionPolicyImpl, deleteObjectImpl, deleteObjectsImpl, deleteReadAheadObjectsImpl, doesObjectExistImpl, getBucketAclImpl, getBucketCorsImpl, getBucketDirectColdAccessImpl, getBucketEncryptionImpl, getBucketLifecycleConfigurationImpl, getBucketLocationImpl, getBucketLoggingConfigurationImpl, getBucketMetadataImpl, getBucketNotificationConfigurationImpl, getBucketPolicyImpl, getBucketQuotaImpl, getBucketReplicationConfigurationImpl, getBucketRequestPaymentImpl, getBucketStorageInfoImpl, getBucketStoragePolicyImpl, getBucketTaggingImpl, getBucketVersioningImpl, getBucketWebsiteConfigurationImpl, getDisPolicyImpl, getObjectAclImpl, getObjectImpl, getObjectImpl, getObjectMetadataImpl, headBucketImpl, initiateMultipartUploadImpl, initThreadPool, listAllBucketsImpl, listContentSummaryImpl, listMultipartUploadsImpl, listObjectsImpl, listPartsImpl, listVersionsImpl, modifyObjectImpl, optionsImpl, putDisPolicyImpl, putObjectImpl, queryExtensionPolicyImpl, queryFetchJobImpl, queryReadAheadObjectsTaskImpl, readAheadObjectsImpl, recordBulkTaskStatus, renameFileImpl, renameObjectImpl, restoreObjectImpl, restoreObjectV2Impl, setBucketAclImpl, setBucketCorsImpl, setBucketDirectColdAccessImpl, setBucketEncryptionImpl, setBucketFSStatusImpl, setBucketLifecycleConfigurationImpl, setBucketLoggingConfigurationImpl, setBucketNotificationImpl, setBucketPolicyImpl, setBucketQuotaImpl, setBucketReplicationConfigurationImpl, setBucketRequestPaymentImpl, setBucketStorageImpl, setBucketTaggingImpl, setBucketVersioningImpl, setBucketWebsiteConfigurationImpl, setExtensionPolicyImpl, setObjectAclImpl, setObjectMetadataImpl, truncateFileImpl, truncateObjectImpl, 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, setCanUseStandardHTTPHeaders, setProviderCredentials, setupConnection, setupConnection, setupConnection, setUserHeaders, 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 HeaderResponse deleteBucket(BaseBucketRequest request) throws ObsException
IObsClientdeleteBucket 在接口中 IObsClientrequest - Parameters of a request for deleting a bucketObsException - 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 failspublic boolean headBucket(BaseBucketRequest request) throws ObsException
IObsClientheadBucket 在接口中 IObsClientrequest - Request parametersObsException - 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 failspublic AccessControlList getBucketAcl(BaseBucketRequest request) throws ObsException
IObsClientgetBucketAcl 在接口中 IObsClientrequest - Request parameters for obtaining the bucket ACLObsException - 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 HeaderResponse setBucketAcl(SetBucketAclRequest request) throws ObsException
IObsClientsetBucketAcl 在接口中 IObsClientrequest - Request parameters for setting a bucket 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 getBucketLocation(BaseBucketRequest request) throws ObsException
IObsClientgetBucketLocation 在接口中 IObsClientrequest - Request parametersObsException - 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 BucketStorageInfo getBucketStorageInfo(BaseBucketRequest request) throws ObsException
IObsClientgetBucketStorageInfo 在接口中 IObsClientrequest - 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 BucketQuota getBucketQuota(BaseBucketRequest request) throws ObsException
IObsClientgetBucketQuota 在接口中 IObsClientrequest - Request parametersObsException - 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 HeaderResponse setBucketQuota(SetBucketQuotaRequest request) throws ObsException
IObsClientsetBucketQuota 在接口中 IObsClientrequest - Request parametersObsException - 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 BucketStoragePolicyConfiguration getBucketStoragePolicy(BaseBucketRequest request) throws ObsException
IObsClientgetBucketStoragePolicy 在接口中 IObsClientrequest - Request parametersObsException - 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 setBucketStoragePolicy(SetBucketStoragePolicyRequest request) throws ObsException
IObsClientsetBucketStoragePolicy 在接口中 IObsClientrequest - Request parametersObsException - 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 HeaderResponse setBucketCors(SetBucketCorsRequest request) throws ObsException
IObsClientsetBucketCors 在接口中 IObsClientrequest - Request parametersObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic 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 BucketCors getBucketCors(BaseBucketRequest request) throws ObsException
IObsClientgetBucketCors 在接口中 IObsClientrequest - Request parametersObsException - 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 failspublic HeaderResponse deleteBucketCors(BaseBucketRequest request) throws ObsException
IObsClientdeleteBucketCors 在接口中 IObsClientrequest - Request parametersObsException - 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 BucketLoggingConfiguration getBucketLogging(BaseBucketRequest request) throws ObsException
IObsClientgetBucketLogging 在接口中 IObsClientrequest - Request parametersObsException - 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 failspublic HeaderResponse setBucketLogging(SetBucketLoggingRequest request) throws ObsException
IObsClientsetBucketLogging 在接口中 IObsClientrequest - Request parametersObsException - 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 HeaderResponse setBucketVersioning(SetBucketVersioningRequest request) throws ObsException
IObsClientsetBucketVersioning 在接口中 IObsClientrequest - Request parametersObsException - 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 failspublic BucketVersioningConfiguration getBucketVersioning(BaseBucketRequest request) throws ObsException
IObsClientgetBucketVersioning 在接口中 IObsClientrequest - Request parametersObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic HeaderResponse setBucketRequestPayment(String bucketName, RequestPaymentEnum payer) throws ObsException
IObsClientsetBucketRequestPayment 在接口中 IObsClientbucketName - Bucket namepayer - The status of the requester-pays functionObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic HeaderResponse setBucketRequestPayment(SetBucketRequestPaymentRequest request) throws ObsException
IObsClientsetBucketRequestPayment 在接口中 IObsClientrequest - Configuration of the requester-pays function of a bucketObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic RequestPaymentConfiguration getBucketRequestPayment(String bucketName) throws ObsException
IObsClientgetBucketRequestPayment 在接口中 IObsClientbucketName - Bucket nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic RequestPaymentConfiguration getBucketRequestPayment(BaseBucketRequest request) throws ObsException
IObsClientgetBucketRequestPayment 在接口中 IObsClientrequest - Basic bucket informationObsException - 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 failspublic LifecycleConfiguration getBucketLifecycle(BaseBucketRequest request) throws ObsException
IObsClientgetBucketLifecycle 在接口中 IObsClientrequest - Request parametersObsException - 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 failspublic HeaderResponse setBucketLifecycle(SetBucketLifecycleRequest request) throws ObsException
IObsClientsetBucketLifecycle 在接口中 IObsClientrequest - Request parametersObsException - 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 HeaderResponse deleteBucketLifecycle(BaseBucketRequest request) throws ObsException
IObsClientdeleteBucketLifecycle 在接口中 IObsClientrequest - Request parametersObsException - 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 String getBucketPolicy(BaseBucketRequest request) throws ObsException
IObsClientgetBucketPolicy 在接口中 IObsClientrequest - Request parametersObsException - 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 BucketPolicyResponse getBucketPolicyV2(BaseBucketRequest request) throws ObsException
IObsClientgetBucketPolicyV2 在接口中 IObsClientrequest - Request parametersObsException - 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 setBucketPolicy(SetBucketPolicyRequest request) throws ObsException
IObsClientsetBucketPolicy 在接口中 IObsClientrequest - Request parametersObsException - 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 failspublic HeaderResponse deleteBucketPolicy(BaseBucketRequest request) throws ObsException
IObsClientdeleteBucketPolicy 在接口中 IObsClientrequest - Request parametersObsException - 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 failspublic WebsiteConfiguration getBucketWebsite(BaseBucketRequest request) throws ObsException
IObsClientgetBucketWebsite 在接口中 IObsClientrequest - Request parametersObsException - 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 failspublic HeaderResponse setBucketWebsite(SetBucketWebsiteRequest request) throws ObsException
IObsClientsetBucketWebsite 在接口中 IObsClientrequest - Request parametersObsException - 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 HeaderResponse deleteBucketWebsite(BaseBucketRequest request) throws ObsException
IObsClientdeleteBucketWebsite 在接口中 IObsClientrequest - Request parametersObsException - 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 BucketTagInfo getBucketTagging(BaseBucketRequest request) throws ObsException
IObsClientgetBucketTagging 在接口中 IObsClientrequest - Request parametersObsException - 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 setBucketTagging(SetBucketTaggingRequest request) throws ObsException
IObsClientsetBucketTagging 在接口中 IObsClientrequest - Request parametersObsException - 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 HeaderResponse deleteBucketTagging(BaseBucketRequest request) throws ObsException
IObsClientdeleteBucketTagging 在接口中 IObsClientrequest - Request parametersObsException - 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 BucketEncryption getBucketEncryption(BaseBucketRequest request) throws ObsException
IObsClientgetBucketEncryption 在接口中 IObsClientrequest - Request parametersObsException - 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 setBucketEncryption(SetBucketEncryptionRequest request) throws ObsException
IObsClientsetBucketEncryption 在接口中 IObsClientrequest - Request parametersObsException - 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 failspublic HeaderResponse deleteBucketEncryption(BaseBucketRequest request) throws ObsException
IObsClientdeleteBucketEncryption 在接口中 IObsClientrequest - Request parametersObsException - 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 failspublic HeaderResponse setBucketReplication(SetBucketReplicationRequest request) throws ObsException
IObsClientsetBucketReplication 在接口中 IObsClientrequest - Request parametersObsException - 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 failspublic ReplicationConfiguration getBucketReplication(BaseBucketRequest request) throws ObsException
IObsClientgetBucketReplication 在接口中 IObsClientrequest - Request parametersObsException - 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 HeaderResponse deleteBucketReplication(BaseBucketRequest request) throws ObsException
IObsClientdeleteBucketReplication 在接口中 IObsClientrequest - Request parametersObsException - 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 BucketNotificationConfiguration getBucketNotification(BaseBucketRequest request) throws ObsException
IObsClientgetBucketNotification 在接口中 IObsClientrequest - Request parametersObsException - 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 HeaderResponse setBucketNotification(SetBucketNotificationRequest request) throws ObsException
IObsClientsetBucketNotification 在接口中 IObsClientrequest - Request parametersObsException - 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
IObsClientputObjects 在接口中 IObsClientrequest - Request parameters for uploading files in a batchObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic 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 ListContentSummaryResult listContentSummary(ListContentSummaryRequest request) throws ObsException
IFSClientlistContentSummary 在接口中 IFSClientrequest - Request parameters for obtain folder contentSummaryObsException - 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 DeleteObjectResult deleteObject(DeleteObjectRequest request) throws ObsException
IObsClientdeleteObject 在接口中 IObsClientrequest - Request parameters for deleting an objectObsException - 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 failspublic AccessControlList getObjectAcl(GetObjectAclRequest request) throws ObsException
IObsClientgetObjectAcl 在接口中 IObsClientrequest - Request parameters for obtaining an object ACLObsException - 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(SetObjectAclRequest request) throws ObsException
IObsClientsetObjectAcl 在接口中 IObsClientrequest - Request parametersObsException - 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 RenameObjectResult renameObject(String bucketName, String objectKey, String newObjectKey) throws ObsException
IObsClientrenameObject 在接口中 IObsClientbucketName - Bucket nameobjectKey - File name or directory namenewObjectKey - Name of the renamed file or directoryObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic RenameObjectResult renameObject(RenameObjectRequest request) throws ObsException
IObsClientrenameObject 在接口中 IObsClientrequest - Parameters of a request for renaming a fileObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic TruncateObjectResult truncateObject(String bucketName, String objectKey, long newLength) throws ObsException
IObsClienttruncateObject 在接口中 IObsClientbucketName - Bucket nameobjectKey - File namenewLength - Size of the truncated fileObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic TruncateObjectResult truncateObject(TruncateObjectRequest request) throws ObsException
IObsClienttruncateObject 在接口中 IObsClientrequest - Parameters of a request for truncating a fileObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ModifyObjectResult modifyObject(String bucketName, String objectKey, long position, File file) throws ObsException
IObsClientmodifyObject 在接口中 IObsClientbucketName - Bucket nameobjectKey - File nameposition - Start position for writing data to a filefile - Local file pathObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ModifyObjectResult modifyObject(String bucketName, String objectKey, long position, InputStream input) throws ObsException
IObsClientmodifyObject 在接口中 IObsClientbucketName - Bucket nameobjectKey - File nameposition - Start position for writing data to a fileinput - Data stream to be uploadedObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic ModifyObjectResult modifyObject(ModifyObjectRequest request) throws ObsException
IObsClientmodifyObject 在接口中 IObsClientrequest - 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 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 HeaderResponse setBucketDirectColdAccess(SetBucketDirectColdAccessRequest request) throws ObsException
IObsClientsetBucketDirectColdAccess 在接口中 IObsClientrequest - Request parametersObsException - 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 BucketDirectColdAccess getBucketDirectColdAccess(BaseBucketRequest request) throws ObsException
IObsClientgetBucketDirectColdAccess 在接口中 IObsClientrequest - Request parametersObsException - 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 HeaderResponse deleteBucketDirectColdAccess(BaseBucketRequest request) throws ObsException
IObsClientdeleteBucketDirectColdAccess 在接口中 IObsClientrequest - Request parametersObsException - 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
IObsClientdoesObjectExist 在接口中 IObsClientbuckeName - Bucket nameobjectKey - Object nameObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS failspublic boolean doesObjectExist(GetObjectMetadataRequest request) throws ObsException
IObsClientdoesObjectExist 在接口中 IObsClientrequest - Request parameters 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 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 © 2021. All rights reserved.