java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.services.model.GenericRequest
直接已知子类:
AbstractBulkRequest, BaseBucketRequest, BaseObjectRequest, ContentSummaryFsRequest, CreateBucketRequest, DeleteObjectsRequest, ListContentSummaryFsRequest, ListContentSummaryRequest, ListMultipartUploadsRequest, ListObjectsRequest, ListVersionsRequest, OptionsInfoRequest, ReadAheadRequest

public class GenericRequest extends Object
Basic class of all requests, which encapsulates common parameters used by all requests.
从以下版本开始:
3.20.3
  • 字段详细资料

    • bucketName

      protected String bucketName
    • isRequesterPays

      private boolean isRequesterPays
      If the requester-pays function is enabled, the requester pays for his/her operations on the bucket.
    • userHeaders

      protected HashMap<String,String> userHeaders
    • httpMethod

      protected HttpMethodEnum httpMethod
  • 构造器详细资料

    • GenericRequest

      public GenericRequest()
    • GenericRequest

      public GenericRequest(String bucketName)
  • 方法详细资料

    • getHttpMethod

      public HttpMethodEnum getHttpMethod()
    • setBucketName

      public void setBucketName(String bucketName)
      Set the bucket name.
      参数:
      bucketName - Bucket name
    • getBucketName

      public String getBucketName()
      Obtain the bucket name.
      返回:
      Bucket name
    • addUserHeaders

      public void addUserHeaders(String key, String value)
    • setUserHeaders

      public void setUserHeaders(HashMap<String,String> userHeaders)
    • getUserHeaders

      public HashMap<String,String> getUserHeaders()
    • isRequesterPays

      public boolean isRequesterPays()
      If the requester is allowed to pay, true is returned. Otherwise, false is returned.

      If the requester-pays function is enabled for a bucket, this attribute must be set to true when the bucket is requested by a requester other than the bucket owner. Otherwise, status code 403 is returned.

      After the requester-pays function is enabled, anonymous access to the bucket is not allowed.

      返回:
      If the requester is allowed to pay, true is returned. Otherwise, false is returned.
    • setRequesterPays

      public void setRequesterPays(boolean isRequesterPays)
      Used to configure whether to enable the requester-pays function.

      If the requester-pays function is enabled for a bucket, this attribute must be set to true when the bucket is requested by a requester other than the bucket owner. Otherwise, status code 403 is returned.

      After the requester-pays function is enabled, anonymous access to the bucket is not allowed.

      参数:
      isRequesterPays - True indicates to enable the requester-pays function. False indicates to disable the requester-pays function.
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object