use of com.amazonaws.services.s3.internal.GetObjectTaggingResponseHeaderHandler in project aws-sdk-android by aws-amplify.
the class AmazonS3Client method getObjectTagging.
@Override
public GetObjectTaggingResult getObjectTagging(GetObjectTaggingRequest getObjectTaggingRequest) {
assertParameterNotNull(getObjectTaggingRequest, "The request parameter must be specified when getting the object tags");
final String bucketName = assertStringNotEmpty(getObjectTaggingRequest.getBucketName(), "BucketName");
final String key = assertNotNull(getObjectTaggingRequest.getKey(), "Key");
final Request<GetObjectTaggingRequest> request = createRequest(bucketName, key, getObjectTaggingRequest, HttpMethodName.GET);
request.addParameter("tagging", null);
addParameterIfNotNull(request, "versionId", getObjectTaggingRequest.getVersionId());
final ResponseHeaderHandlerChain<GetObjectTaggingResult> handlerChain = new ResponseHeaderHandlerChain<GetObjectTaggingResult>(new Unmarshallers.GetObjectTaggingResponseUnmarshaller(), new GetObjectTaggingResponseHeaderHandler());
return invoke(request, handlerChain, bucketName, key);
}
Aggregations