com.qcloud.cos.model.HeadBucketResultHandler Maven / Gradle / Ivy
package com.qcloud.cos.model;
import com.qcloud.cos.Headers;
import com.qcloud.cos.http.CosHttpResponse;
import com.qcloud.cos.internal.AbstractCosResponseHandler;
import com.qcloud.cos.internal.CosServiceResponse;
public class HeadBucketResultHandler extends AbstractCosResponseHandler {
@Override
public CosServiceResponse handle(CosHttpResponse response)
throws Exception {
final CosServiceResponse cosResponse = new CosServiceResponse();
final HeadBucketResult result = new HeadBucketResult();
result.setBucketRegion(response.getHeaders().get(Headers.COS_BUCKET_REGION));
cosResponse.setResult(result);
return cosResponse;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy