Click or drag to resize
OssClient Constructor
Overload List
  NameDescription
Public methodOssClient(String, String)
由默认的OSS访问地址(http://oss-cn-hangzhou.aliyuncs.com)构造一个新的OssClient实例。
Public methodOssClient(String, String, String)

由用户指定的OSS访问地址构造一个新的OssClient实例。

OSS访问地址的生成规则为:http://region.aliyuncs.com ,其中region表示“数据中心“。

目前OSS对外公开的数据中心的域名为:

杭州数据中心:oss-cn-hangzhou

青岛数据中心:oss-cn-qingdao

北京数据中心:oss-cn-beijing

香港数据中心:oss-cn-hongkong

深圳数据中心:oss-cn-shenzhen

例如region表示北京数据中心,则OSS访问地址为:http://oss-cn-beijing.aliyuncs.com

Public methodOssClient(Uri, String, String)

由用户指定的OSS访问地址构造一个新的OssClient实例。

OSS访问地址的生成规则为:http://region.aliyuncs.com ,其中region表示“数据中心“。

目前OSS对外公开的数据中心的域名为:

杭州数据中心:oss-cn-hangzhou

青岛数据中心:oss-cn-qingdao

北京数据中心:oss-cn-beijing

香港数据中心:oss-cn-hongkong

深圳数据中心:oss-cn-shenzhen

例如region表示北京数据中心,则OSS访问地址为:http://oss-cn-beijing.aliyuncs.com

Public methodOssClient(Uri, String, String, ClientConfiguration)

由用户指定的OSS访问地址构造一个新的OssClient实例。

OSS访问地址的生成规则为:http://region.aliyuncs.com ,其中region表示“数据中心“。

目前OSS对外公开的数据中心的域名为:

杭州数据中心:oss-cn-hangzhou

青岛数据中心:oss-cn-qingdao

北京数据中心:oss-cn-beijing

香港数据中心:oss-cn-hongkong

深圳数据中心:oss-cn-shenzhen

例如region表示北京数据中心,则OSS访问地址为:http://oss-cn-beijing.aliyuncs.com

Top
See Also