Search in sources :

Example 1 with GetObjectTaggingResponseHeaderHandler

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);
}
Also used : Unmarshallers(com.amazonaws.services.s3.model.transform.Unmarshallers) GetObjectTaggingResponseHeaderHandler(com.amazonaws.services.s3.internal.GetObjectTaggingResponseHeaderHandler) ResponseHeaderHandlerChain(com.amazonaws.services.s3.internal.ResponseHeaderHandlerChain)

Aggregations

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