12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- /*
- * Copyright (C) Alibaba Cloud Computing
- * All rights reserved.
- *
- * 版权所有 (C)阿里云计算有限公司
- */
- using System;
- using System.Collections.Generic;
- using Aliyun.OSS.Common.Communication;
- using Aliyun.OSS.Util;
- using Aliyun.OSS.Transform;
- namespace Aliyun.OSS.Commands
- {
- internal class GetBucketWebsiteCommand : OssCommand<BucketWebsiteResult>
- {
- private readonly string _bucketName;
- protected override string Bucket
- {
- get { return _bucketName; }
- }
- private GetBucketWebsiteCommand(IServiceClient client, Uri endpoint, ExecutionContext context,
- string bucketName, IDeserializer<ServiceResponse, BucketWebsiteResult> deserializer)
- : base(client, endpoint, context, deserializer)
- {
- OssUtils.CheckBucketName(bucketName);
- _bucketName = bucketName;
- }
- public static GetBucketWebsiteCommand Create(IServiceClient client, Uri endpoint,
- ExecutionContext context,
- string bucketName)
- {
- return new GetBucketWebsiteCommand(client, endpoint, context, bucketName,
- DeserializerFactory.GetFactory().CreateGetBucketWebSiteResultDeserializer());
- }
- protected override IDictionary<string, string> Parameters
- {
- get
- {
- return new Dictionary<string, string>()
- {
- { RequestParameters.SUBRESOURCE_WEBSITE, null }
- };
- }
- }
- }
- }
|