Search in sources :

Example 1 with DeleteObjectTaggingHeaderHandler

use of com.amazonaws.services.s3.internal.DeleteObjectTaggingHeaderHandler in project aws-sdk-android by aws-amplify.

the class AmazonS3Client method deleteObjectTagging.

@Override
public DeleteObjectTaggingResult deleteObjectTagging(DeleteObjectTaggingRequest deleteObjectTaggingRequest) {
    assertParameterNotNull(deleteObjectTaggingRequest, "The request parameter must be specified when delete the object tags");
    final String bucketName = assertStringNotEmpty(deleteObjectTaggingRequest.getBucketName(), "BucketName");
    final String key = assertStringNotEmpty(deleteObjectTaggingRequest.getKey(), "Key");
    final Request<DeleteObjectTaggingRequest> request = createRequest(bucketName, key, deleteObjectTaggingRequest, HttpMethodName.DELETE);
    request.addParameter("tagging", null);
    addParameterIfNotNull(request, "versionId", deleteObjectTaggingRequest.getVersionId());
    final ResponseHeaderHandlerChain<DeleteObjectTaggingResult> handlerChain = new ResponseHeaderHandlerChain<DeleteObjectTaggingResult>(new Unmarshallers.DeleteObjectTaggingResponseUnmarshaller(), new DeleteObjectTaggingHeaderHandler());
    return invoke(request, handlerChain, bucketName, key);
}
Also used : Unmarshallers(com.amazonaws.services.s3.model.transform.Unmarshallers) DeleteObjectTaggingHeaderHandler(com.amazonaws.services.s3.internal.DeleteObjectTaggingHeaderHandler) ResponseHeaderHandlerChain(com.amazonaws.services.s3.internal.ResponseHeaderHandlerChain)

Aggregations

DeleteObjectTaggingHeaderHandler (com.amazonaws.services.s3.internal.DeleteObjectTaggingHeaderHandler)1 ResponseHeaderHandlerChain (com.amazonaws.services.s3.internal.ResponseHeaderHandlerChain)1 Unmarshallers (com.amazonaws.services.s3.model.transform.Unmarshallers)1