Search in sources :

Example 1 with GetObjectTaggingResponseHeaderHandler

use of com.qcloud.cos.internal.GetObjectTaggingResponseHeaderHandler in project cos-java-sdk-v5 by tencentyun.

the class COSClient method getObjectTagging.

@Override
public GetObjectTaggingResult getObjectTagging(GetObjectTaggingRequest getObjectTaggingRequest) {
    rejectNull(getObjectTaggingRequest, "The request parameter must be specified when getting the object tags");
    rejectNull(getObjectTaggingRequest.getBucketName(), "The request bucketName must be specified when getting the object tags");
    rejectNull(getObjectTaggingRequest.getKey(), "The request key must be specified when getting the object tags");
    CosHttpRequest<GetObjectTaggingRequest> request = createRequest(getObjectTaggingRequest.getBucketName(), getObjectTaggingRequest.getKey(), getObjectTaggingRequest, HttpMethodName.GET);
    request.addParameter("tagging", null);
    addParameterIfNotNull(request, "versionId", getObjectTaggingRequest.getVersionId());
    ResponseHeaderHandlerChain<GetObjectTaggingResult> handlerChain = new ResponseHeaderHandlerChain<GetObjectTaggingResult>(new Unmarshallers.GetObjectTaggingResponseUnmarshaller(), new GetObjectTaggingResponseHeaderHandler());
    return invoke(request, handlerChain);
}
Also used : Unmarshallers(com.qcloud.cos.internal.Unmarshallers) GetObjectTaggingResponseHeaderHandler(com.qcloud.cos.internal.GetObjectTaggingResponseHeaderHandler) ResponseHeaderHandlerChain(com.qcloud.cos.internal.ResponseHeaderHandlerChain)

Aggregations

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