릴리스 노트
제품 공지
void com.qcloud.cos.ClientConfig.setEndPointSuffix(String endPointSuffix)
// 1 CDN 가속 도메인으로 사용. COS의 인증 정보로 재발송 불필요COSCredentials cred = new AnonymousCOSCredentials();// 2 bucket의 리전 약칭 설정. COS 리전의 약칭은 https://www.tencentcloud.com/document/product/436/6224?from_cn_redirect=1 참조ClientConfig clientConfig = new ClientConfig(new Region("ap-beijing"));// https 프로토콜 사용 권장clientConfig.setHttpProtocol(HttpProtocol.https);// 3 기본 CDN 가속 도메인 확장자 설정String cdnSuffix = "file.myqcloud.com";clientConfig.setEndPointSuffix(cdnSuffix);// 4 cos 클라이언트 생성COSClient cosclient = new COSClient(cred, clientConfig);
매개변수 이름 | 설명 | 유형 |
endPointSuffix | 도메인 확장자를 설정하여 CDN 가속 도메인 사용 | String |
void com.qcloud.cos.ClientConfig.setEndpointBuilder(EndpointBuilder endpointBuilder)
// 1 CDN 가속 도메인으로 사용. COS의 인증 정보로 재발송 불필요COSCredentials cred = new AnonymousCOSCredentials();// 2 bucket의 리전 약칭 설정. COS 리전의 약칭은 https://www.tencentcloud.com/document/product/436/6224?from_cn_redirect=1 참조ClientConfig clientConfig = new ClientConfig(new Region("ap-beijing"));// https 프로토콜 사용 권장. https 프로토콜을 사용하는 경우 사용자 정의 도메인에 관련 https 인증서 필요clientConfig.setHttpProtocol(HttpProtocol.https);// 3 CDN 사용자 정의 도메인 설정// get service 요청은 이 도메인을 사용하며, 이 도메인은 사용자 정의할 수 없음String serviceApiEndpoint = "service.cos.myqcloud.com";String cdnEndpoint = "xxx.xxx.com";UserSpecifiedEndpointBuilder endPointBuilder = new UserSpecifiedEndpointBuilder(cdnEndpoint, serviceApiEndpoint);clientConfig.setEndpointBuilder(endPointBuilder);// 4 cos 클라이언트 생성COSClient cosclient = new COSClient(cred, clientConfig);
매개변수 이름 | 설명 | 유형 |
endPointerBuilder | 사용자 정의 CDN 가속 도메인 구축 시 사용하는 매개변수 | UserSpecifiedEndpointBuilder |
매개변수 이름 | 설명 | 유형 |
generalApiEndpoint | 사용자 정의 CDN 가속 도메인 입력 | String |
getServiceApiEndpoint | service.cos.myqcloud.com만 입력 가능 | String |
void com.qcloud.cos.ClientConfig.setEndpointBuilder(EndpointBuilder endpointBuilder)
// 1 사용자 자격 정보 초기화(secretId, secretKey)COSCredentials cred = new BasicCOSCredentials("AKIDXXXXXXXX", "1A2Z3YYYYYYYYYY");// 2 bucket의 리전 약칭 설정. COS 리전의 약칭은 https://www.tencentcloud.com/document/product/436/6224?from_cn_redirect=1 참조ClientConfig clientConfig = new ClientConfig(new Region("ap-beijing"));// https 프로토콜 사용 권장clientConfig.setHttpProtocol(HttpProtocol.https);// 3 사용자 정의 도메인 설정// get service 요청은 이 도메인을 사용하며, 이 도메인은 사용자 정의할 수 없음String serviceApiEndpoint = "service.cos.myqcloud.com";String userEndpoint = "xxx.xxx.com";UserSpecifiedEndpointBuilder endPointBuilder = new UserSpecifiedEndpointBuilder(userEndpoint, serviceApiEndpoint);clientConfig.setEndpointBuilder(endPointBuilder);// 4 cos 클라이언트 생성COSClient cosclient = new COSClient(cred, clientConfig);
매개변수 이름 | 설명 | 유형 |
endPointerBuilder | 사용자 정의 원본 서버 도메인 구축 시 사용하는 매개변수 | UserSpecifiedEndpointBuilder |
매개변수 이름 | 설명 | 유형 |
generalApiEndpoint | 사용자 정의 원본 서버 도메인 입력 | String |
getServiceApiEndpoint | service.cos.myqcloud.com만 입력 가능 | String |
void com.qcloud.cos.ClientConfig.setEndPointSuffix(String endPointSuffix)
// 1 사용자 자격 정보 초기화(secretId, secretKey)COSCredentials cred = new BasicCOSCredentials("AKIDXXXXXXXX", "1A2Z3YYYYYYYYYY");// 2 bucket의 리전 약칭 설정. COS 리전의 약칭은 https://www.tencentcloud.com/document/product/436/6224?from_cn_redirect=1 참조ClientConfig clientConfig = new ClientConfig(new Region("ap-beijing"));// https 프로토콜 사용 권장clientConfig.setHttpProtocol(HttpProtocol.https);// 3 글로벌 가속 도메인 확장자 설정String cosSuffix = "cos.accelerate.myqcloud.com";clientConfig.setEndPointSuffix(cosSuffix);// 4 cos 클라이언트 생성COSClient cosclient = new COSClient(cred, clientConfig);
매개변수 이름 | 설명 | 유형 |
endPointSuffix | 도메인 확장자를 설정하여 글로벌 가속 도메인 사용 | String |
피드백