1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using COSXML.Common;
- using COSXML.CosException;
- namespace COSXML.Model.Object
- {
-
-
-
-
- public sealed class AbortMultipartUploadRequest : ObjectRequest
- {
-
-
-
- private string uploadId;
- public AbortMultipartUploadRequest(string bucket, string key, string uploadId)
- : base(bucket, key)
- {
- this.uploadId = uploadId;
- this.method = CosRequestMethod.DELETE;
- }
- public override void CheckParameters()
- {
- if (requestUrlWithSign != null)
- {
- return;
- }
- base.CheckParameters();
- if (uploadId == null)
- {
- throw new CosClientException((int)CosClientError.InvalidArgument, "uploadId is null");
- }
- }
- protected override void InternalUpdateQueryParameters()
- {
- try
- {
- this.queryParameters.Add("uploadId", uploadId);
- }
- catch (ArgumentException)
- {
- this.queryParameters["uploadId"] = uploadId;
- }
- }
- }
- }
|