com.github.guang19.cosservice.template.objecttemplate.TenCloudCOSObjectTemplate Maven / Gradle / Ivy
package com.github.guang19.cosservice.template.objecttemplate;
/**
* @author yangguang
* @date 2020/2/3
* @description
* 腾讯云COS操作模板
*
*/
public interface TenCloudCOSObjectTemplate extends COSObjectTemplate
{
/**
*
* 从当前存储桶复制对象到目标存储桶,存储桶无需填写 APPId,支持目标跨域拷贝
* 此方法就算复制失败,仍然会返回一个错误的url,因为我在处理异常这点上尽量不影响程序的正常运行
*
* @param sourceKey 原对象key
* @param targetBucketName 目标存储桶
* @param targetRegion 目标地域
* @param targetKey 目标对象key
* @return 复制后的对象的url
*/
public String copyObject(String sourceKey,String targetRegion,String targetBucketName,String targetKey);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy