com.qcloud.cos.internal.COSDefaultAclHeaderHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cos_api-bundle Show documentation
Show all versions of cos_api-bundle Show documentation
A single bundled dependency that includes all service and dependent JARs with third-party libraries
relocated to different namespaces.
package com.qcloud.cos.internal;
import com.qcloud.cos.Headers;
import com.qcloud.cos.http.CosHttpResponse;
import com.qcloud.cos.model.AccessControlList;
import com.qcloud.cos.model.CannedAccessControlList;
import java.util.Map;
public class COSDefaultAclHeaderHandler implements HeaderHandler {
@Override
public void handle(AccessControlList result, CosHttpResponse response) {
Map headers = response.getHeaders();
if(headers.containsKey(Headers.COS_CANNED_ACL) &&
headers.get(Headers.COS_CANNED_ACL).equals(CannedAccessControlList.Default.toString())) {
result.setExistDefaultAcl(true);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy