public class DefaultOssProperties extends Object implements OssProperties, org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
DefaultOssProperties() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
Map<String,String> |
getBuckets()
The file's category and bucket mapping, the file will be stored in corresponding bucket for different category,
if the bucket is not defined for the file's category , the default bucket will be taken place.
|
com.aliyun.oss.ClientConfiguration |
getClientConfiguration() |
String |
getDefaultBucket()
The default bucket to store the file which's bucket is not specified for category.
|
String |
getEndpoint()
The oss domain base
|
String |
getKeyId()
The oss access key id
|
String |
getKeySecret()
The oss access secret
|
void |
setBuckets(Map<String,String> buckets) |
void |
setClientConfiguration(com.aliyun.oss.ClientConfiguration clientConfiguration) |
void |
setDefaultBucket(String defaultBucket) |
void |
setEndpoint(String endpoint) |
void |
setKeyId(String keyId) |
void |
setKeySecret(String keySecret) |
public String getKeyId()
OssPropertiesgetKeyId in interface OssPropertiespublic void setKeyId(String keyId)
public String getKeySecret()
OssPropertiesgetKeySecret in interface OssPropertiespublic void setKeySecret(String keySecret)
public String getEndpoint()
OssPropertiesgetEndpoint in interface OssPropertiespublic void setEndpoint(String endpoint)
public String getDefaultBucket()
OssPropertiesgetDefaultBucket in interface OssPropertiespublic void setDefaultBucket(String defaultBucket)
public Map<String,String> getBuckets()
OssPropertiesgetBuckets in interface OssPropertiespublic com.aliyun.oss.ClientConfiguration getClientConfiguration()
getClientConfiguration in interface OssPropertiespublic void setClientConfiguration(com.aliyun.oss.ClientConfiguration clientConfiguration)
Copyright © 2019. All rights reserved.