类 ObjectRequest

    • 字段详细资料

      • cosPath

        protected java.lang.String cosPath
        对象在cos上的路径
    • 构造器详细资料

      • ObjectRequest

        public ObjectRequest​(java.lang.String bucket,
                             java.lang.String cosPath)
        对象相关请求基类
        参数:
        bucket - 存储桶名
        cosPath - cos上的路径
    • 方法详细资料

      • setCosPath

        public void setCosPath​(java.lang.String cosPath)
        设置对象在cos上的路径
        参数:
        cosPath - 对象在cos上的路径
      • getPath

        public java.lang.String getPath​(CosXmlServiceConfig config)
        支持 CSP 的 Bucket 可能在 path 上
        指定者:
        getPath 在类中 CosXmlRequest
        参数:
        config - 服务配置
        返回:
        path
      • getCosPath

        public java.lang.String getCosPath()
        获取对象在cos上的路径
        返回:
        对象在cos上的路径
      • setCOSServerSideEncryption

        public void setCOSServerSideEncryption()
        C 对象SSE-COS服务端加密配置
      • setCOSServerSideEncryptionWithCustomerKey

        public void setCOSServerSideEncryptionWithCustomerKey​(java.lang.String customerKey)
                                                       throws CosXmlClientException
        对象SSE-C服务端加密配置
        参数:
        customerKey - 服务端加密密钥
        抛出:
        CosXmlClientException - 客户端异常
      • setCOSServerSideEncryptionWithKMS

        public void setCOSServerSideEncryptionWithKMS​(java.lang.String customerKeyID,
                                                      java.lang.String json)
                                               throws CosXmlClientException
        对象SSE-KMS服务端加密配置
        参数:
        customerKeyID - 用于指定 KMS 的用户主密钥 CMK,如不指定,则使用 COS 默认创建的 CMK
        json - 用于指定加密上下文,值为 JSON 格式加密上下文键值对的 Base64 编码
        抛出:
        CosXmlClientException - 客户端代理
      • getContentType

        protected java.lang.String getContentType()