Search in sources :

Example 1 with DeleteObjectTaggingHeaderHandler

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);
}
Also used : Unmarshallers(com.qcloud.cos.internal.Unmarshallers) DeleteObjectTaggingHeaderHandler(com.qcloud.cos.internal.DeleteObjectTaggingHeaderHandler) ResponseHeaderHandlerChain(com.qcloud.cos.internal.ResponseHeaderHandlerChain)

Aggregations

DeleteObjectTaggingHeaderHandler (com.qcloud.cos.internal.DeleteObjectTaggingHeaderHandler)1 ResponseHeaderHandlerChain (com.qcloud.cos.internal.ResponseHeaderHandlerChain)1 Unmarshallers (com.qcloud.cos.internal.Unmarshallers)1