类 AbstractObjectClient

所有已实现的接口:
IFSClient, IObsBucketExtendClient, IObsClient, Closeable, AutoCloseable
直接已知子类:
AbstractMultipartObjectClient

public abstract class AbstractObjectClient extends AbstractBucketAdvanceClient
  • 构造器详细资料

    • AbstractObjectClient

      public AbstractObjectClient()
  • 方法详细资料

    • doesObjectExist

      public boolean doesObjectExist(String bucketName, String objectKey) throws ObsException
      从接口复制的说明: IObsClient
      Check whether an object exists.
      参数:
      bucketName - Bucket name
      objectKey - Object name
      返回:
      Whether an object exists
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • doesObjectExist

      public boolean doesObjectExist(GetObjectMetadataRequest request) throws ObsException
      从接口复制的说明: IObsClient
      Check whether an object exists.
      参数:
      request - Request parameters for obtaining the properties of an object
      返回:
      Whether an object exists
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • optionsObject

      public OptionsInfoResult optionsObject(String bucketName, String objectKey, OptionsInfoRequest optionInfo) throws ObsException
      Perform a preflight on a bucket.
      参数:
      bucketName - Bucket name
      objectKey - Object name
      optionInfo - Parameters in an object preflight request
      返回:
      Response to the object preflight request
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • listObjects

      public ObjectListing listObjects(ListObjectsRequest request) throws ObsException
      从接口复制的说明: IObsClient
      List objects in the bucket.
      参数:
      request - Request parameters for listing objects in a bucket
      返回:
      Response to the request for listing objects in the bucket
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • listObjects

      public ObjectListing listObjects(String bucketName) throws ObsException
      从接口复制的说明: IObsClient
      List objects in the bucket.
      参数:
      bucketName - Bucket name
      返回:
      Response to the request for listing objects in the bucket
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • listVersions

      @Deprecated public ListVersionsResult listVersions(String bucketName, String prefix, String delimiter, String keyMarker, String versionIdMarker, long maxKeys, String nextVersionIdMarker) throws ObsException
      已过时。
      List versioning objects in a bucket.
      参数:
      bucketName - Bucket name
      prefix - Object name prefix used for listing versioning objects
      delimiter - Character for grouping object names
      keyMarker - 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 listed
      nextVersionIdMarker - Deprecated field
      返回:
      Response to the request for listing versioning objects in the bucket
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • listVersions

      public ListVersionsResult listVersions(ListVersionsRequest request) throws ObsException
      从接口复制的说明: IObsClient
      List versioning objects in a bucket.
      参数:
      request - Request parameters for listing versioning objects in the bucket
      返回:
      Response to the request for listing versioning objects in the bucket
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • listVersions

      public ListVersionsResult listVersions(String bucketName) throws ObsException
      从接口复制的说明: IObsClient
      List versioning objects in a bucket.
      参数:
      bucketName - Bucket name
      返回:
      Response to the request for listing versioning objects in the bucket
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • listVersions

      public ListVersionsResult listVersions(String bucketName, long maxKeys) throws ObsException
      从接口复制的说明: IObsClient
      List versioning objects in a bucket.
      参数:
      bucketName - Bucket name
      maxKeys - Maximum number of versioning objects to be listed
      返回:
      Response to the request for listing versioning objects in the bucket
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • listVersions

      public ListVersionsResult listVersions(String bucketName, String prefix, String delimiter, String keyMarker, String versionIdMarker, long maxKeys) throws ObsException
      从接口复制的说明: IObsClient
      List versioning objects in a bucket.
      参数:
      bucketName - Bucket name
      prefix - Object name prefix used for listing versioning objects
      delimiter - Character for grouping object names
      keyMarker - 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 listed
      返回:
      Response to the request for listing versioning objects in the bucket
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • putObject

      public PutObjectResult putObject(String bucketName, String objectKey, InputStream input, ObjectMetadata metadata) throws ObsException
      从接口复制的说明: IObsClient
      Upload an object.
      参数:
      bucketName - Bucket name
      objectKey - Object name
      input - Data stream to be uploaded
      metadata - Object properties
      返回:
      Response to an object upload request
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • putObject

      public PutObjectResult putObject(String bucketName, String objectKey, InputStream input) throws ObsException
      从接口复制的说明: IObsClient
      Upload an object.
      参数:
      bucketName - Bucket name
      objectKey - Object name
      input - Data stream to be uploaded
      返回:
      Response to an object upload request
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • putObject

      public PutObjectResult putObject(PutObjectRequest request) throws ObsException
      从接口复制的说明: IObsClient
      Upload an object.
      参数:
      request - Parameters in an object upload request
      返回:
      Response to an object upload request
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • putObject

      public PutObjectResult putObject(String bucketName, String objectKey, File file) throws ObsException
      从接口复制的说明: IObsClient
      Upload an object.
      参数:
      bucketName - Bucket name
      objectKey - Object name
      file - File to be uploaded
      返回:
      Response to an object upload request
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • putObject

      public PutObjectResult putObject(String bucketName, String objectKey, File file, ObjectMetadata metadata) throws ObsException
      从接口复制的说明: IObsClient
      Upload an object.
      参数:
      bucketName - Bucket name
      objectKey - Object name
      file - File to be uploaded
      metadata - Object properties
      返回:
      Response to an object upload request
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • putObjectInTwoBucket

      public PutObjectInTwoBucketResult putObjectInTwoBucket(PutObjectInTwoBucketRequest request) throws ObsException
      抛出:
      ObsException
    • getObject

      public ObsObject getObject(GetObjectRequest request) throws ObsException
      从接口复制的说明: IObsClient
      Download an object.
      参数:
      request - Parameters in an object download request
      返回:
      Object information, including the object data stream
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • getObject

      public ObsObject getObject(String bucketName, String objectKey, String versionId) throws ObsException
      从接口复制的说明: IObsClient
      Download an object.
      参数:
      bucketName - Bucket name
      objectKey - Object name
      versionId - Object version ID
      返回:
      Object information, including the object data stream
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • getObject

      public ObsObject getObject(String bucketName, String objectKey) throws ObsException
      从接口复制的说明: IObsClient
      Download an object.
      参数:
      bucketName - Bucket name
      objectKey - Object name
      返回:
      Object information, including the object data stream
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • selectObjectContent

      public SelectObjectResult selectObjectContent(SelectObjectRequest selectRequest) throws ObsException
      从接口复制的说明: IObsClient
      Selects rows from an object using a SQL statement.
      参数:
      selectRequest - Parameters in an object select request
      返回:
      Select result container
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • deleteObject

      public DeleteObjectResult deleteObject(String bucketName, String objectKey, String versionId) throws ObsException
      从接口复制的说明: IObsClient
      Delete an object.
      参数:
      bucketName - Bucket name
      objectKey - Object name
      versionId - Object version ID
      返回:
      Common response headers
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • deleteObject

      public DeleteObjectResult deleteObject(String bucketName, String objectKey) throws ObsException
      从接口复制的说明: IObsClient
      Delete an object.
      参数:
      bucketName - Bucket name
      objectKey - Object name
      返回:
      Common response headers
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • deleteObject

      public DeleteObjectResult deleteObject(DeleteObjectRequest request) throws ObsException
      从接口复制的说明: IObsClient
      Delete an object.
      参数:
      request - Request parameters for deleting an object
      返回:
      Common response headers
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • deleteObjects

      public DeleteObjectsResult deleteObjects(DeleteObjectsRequest deleteObjectsRequest) throws ObsException
      从接口复制的说明: IObsClient
      Delete objects in a batch.
      参数:
      deleteObjectsRequest - Parameters in an object batch deletion request
      返回:
      Result of the object batch deletion request
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • copyObject

      public CopyObjectResult copyObject(CopyObjectRequest request) throws ObsException
      从接口复制的说明: IObsClient
      Copy an object.
      参数:
      request - Parameters in a request for copying an object
      返回:
      Result of the object copy
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • copyObject

      public CopyObjectResult copyObject(String sourceBucketName, String sourceObjectKey, String destBucketName, String destObjectKey) throws ObsException
      从接口复制的说明: IObsClient
      Copy an object.
      参数:
      sourceBucketName - Source bucket name
      sourceObjectKey - Source object name
      destBucketName - Destination bucket name
      destObjectKey - Destination object name
      返回:
      Result of the object copy
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • getObjectAcl

      public AccessControlList getObjectAcl(String bucketName, String objectKey, String versionId) throws ObsException
      从接口复制的说明: IObsClient
      Obtain an object ACL.
      参数:
      bucketName - Bucket name
      objectKey - Object name
      versionId - Object version ID
      返回:
      Object ACL
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • getObjectAcl

      public AccessControlList getObjectAcl(String bucketName, String objectKey) throws ObsException
      从接口复制的说明: IObsClient
      Obtain an object ACL.
      参数:
      bucketName - Bucket name
      objectKey - Object name
      返回:
      Object ACL
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • getObjectAcl

      public AccessControlList getObjectAcl(GetObjectAclRequest request) throws ObsException
      从接口复制的说明: IObsClient
      Obtain an object ACL.
      参数:
      request - Request parameters for obtaining an object ACL
      返回:
      Object ACL
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • setObjectAcl

      @Deprecated public HeaderResponse setObjectAcl(String bucketName, String objectKey, String cannedACL, AccessControlList acl, String versionId) throws ObsException
      已过时。
      Set an object ACL.
      参数:
      bucketName - Bucket name
      objectKey - Object name
      cannedACL - Pre-defined access control policy
      acl - ACL ("acl" and "cannedACL" cannot be used together.)
      versionId - Object version ID
      返回:
      Common response headers
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • setObjectAcl

      public HeaderResponse setObjectAcl(SetObjectAclRequest request) throws ObsException
      从接口复制的说明: IObsClient
      Set an object ACL.
      参数:
      request - Request parameters
      返回:
      Common response headers
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • setObjectAcl

      public HeaderResponse setObjectAcl(String bucketName, String objectKey, AccessControlList acl, String versionId) throws ObsException
      从接口复制的说明: IObsClient
      Set an object ACL.
      参数:
      bucketName - Bucket name
      objectKey - Object name
      acl - ACL
      versionId - Object version ID
      返回:
      Common response headers
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • setObjectAcl

      public HeaderResponse setObjectAcl(String bucketName, String objectKey, AccessControlList acl) throws ObsException
      从接口复制的说明: IObsClient
      Set an object ACL.
      参数:
      bucketName - Bucket name
      objectKey - Object name
      acl - ACL
      返回:
      Common response headers
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • getObjectMetadata

      public ObjectMetadata getObjectMetadata(GetObjectMetadataRequest request) throws ObsException
      从接口复制的说明: IObsClient
      Obtain object properties.
      参数:
      request - Parameters in a request for obtaining the properties of an object
      返回:
      Object properties
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • setObjectMetadata

      public ObjectMetadata setObjectMetadata(SetObjectMetadataRequest request) throws ObsException
      从接口复制的说明: IObsClient
      Set object properties.
      参数:
      request - Parameters in the request for obtaining object properties
      返回:
      Object properties
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • getObjectMetadata

      public ObjectMetadata getObjectMetadata(String bucketName, String objectKey, String versionId) throws ObsException
      从接口复制的说明: IObsClient
      Obtain object properties.
      参数:
      bucketName - Bucket name
      objectKey - Object name
      versionId - Object version ID
      返回:
      Object properties
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • getObjectMetadata

      public ObjectMetadata getObjectMetadata(String bucketName, String objectKey) throws ObsException
      从接口复制的说明: IObsClient
      Obtain object properties.
      参数:
      bucketName - Bucket name
      objectKey - Object name
      返回:
      Object properties
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • appendObject

      public AppendObjectResult appendObject(AppendObjectRequest request) throws ObsException
      从接口复制的说明: IObsClient
      Perform an appendable upload.
      参数:
      request - Parameters in an appendable upload request
      返回:
      Response to the appendable upload request
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • restoreObject

      从接口复制的说明: IObsClient
      Restore an Archive object.
      参数:
      request - Parameters in a request for restoring an Archive object
      返回:
      Status of the to-be-restored Archive object
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • getObjectTagging

      public ObjectTagResult getObjectTagging(ObjectTaggingRequest request) throws ObsException
      从接口复制的说明: IObsClient
      Obtain object tags.
      参数:
      request - Request parameters
      返回:
      Object tag
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • setObjectTagging

      public HeaderResponse setObjectTagging(ObjectTaggingRequest request) throws ObsException
      从接口复制的说明: IObsClient
      Set object tags.
      参数:
      request - Request parameters
      返回:
      Common response headers
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • deleteObjectTagging

      public HeaderResponse deleteObjectTagging(ObjectTaggingRequest request) throws ObsException
      从接口复制的说明: IObsClient
      Delete object tags.
      参数:
      request - Request parameters
      返回:
      Common response headers
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
    • restoreObjectV2

      public RestoreObjectResult restoreObjectV2(RestoreObjectRequest request) throws ObsException
      从接口复制的说明: IObsClient
      Restore an Archive object.
      参数:
      request - Request parameters for restoring an Archive object
      返回:
      Result of restoring the Archive object
      抛出:
      ObsException - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails