use of com.qcloud.cos.internal.DeleteObjectTaggingHeaderHandler in project cos-java-sdk-v5 by tencentyun.
the class COSClient method deleteObjectTagging.
@Override
public DeleteObjectTaggingResult deleteObjectTagging(DeleteObjectTaggingRequest deleteObjectTaggingRequest) {
rejectNull(deleteObjectTaggingRequest, "The request parameter must be specified when delete the object tags");
rejectNull(deleteObjectTaggingRequest.getBucketName(), "The request bucketName must be specified setting the object tags");
rejectNull(deleteObjectTaggingRequest.getKey(), "The request key must be specified setting the object tags");
CosHttpRequest<DeleteObjectTaggingRequest> request = createRequest(deleteObjectTaggingRequest.getBucketName(), deleteObjectTaggingRequest.getKey(), deleteObjectTaggingRequest, HttpMethodName.DELETE);
request.addParameter("tagging", null);
addParameterIfNotNull(request, "versionId", deleteObjectTaggingRequest.getVersionId());
ResponseHeaderHandlerChain<DeleteObjectTaggingResult> handlerChain = new ResponseHeaderHandlerChain<DeleteObjectTaggingResult>(new Unmarshallers.DeleteObjectTaggingResponseUnmarshaller(), new DeleteObjectTaggingHeaderHandler());
return invoke(request, handlerChain);
}
Aggregations