public class DefaultProfile extends Object implements IClientProfile
| Modifier and Type | Method and Description |
|---|---|
static void |
addEndpoint(String endpointName,
String regionId,
String product,
String domain) |
static void |
addEndpoint(String endpointName,
String regionId,
String product,
String domain,
boolean isNeverExpire) |
String |
getCertPath()
use HttpClientConfig.getCertPath instead
|
Credential |
getCredential() |
List<Endpoint> |
getEndpoints() |
List<Endpoint> |
getEndpoints(String regionId,
String product) |
List<Endpoint> |
getEndpoints(String product,
String regionId,
String serviceCode,
String endpointType) |
FormatType |
getFormat() |
HttpClientConfig |
getHttpClientConfig()
http client configs
|
static DefaultProfile |
getProfile() |
static DefaultProfile |
getProfile(String regionId) |
static DefaultProfile |
getProfile(String regionId,
EndpointResolver provider,
String accessKeyId,
String secret) |
static DefaultProfile |
getProfile(String regionId,
EndpointResolver provider,
String accessKeyId,
String secret,
String stsToken) |
static DefaultProfile |
getProfile(String regionId,
ICredentialProvider icredential) |
static DefaultProfile |
getProfile(String regionId,
Map<String,String> productDomainMap,
String accessKeyId,
String secret)
给个性化用户使用的,CustomizedEndpointsParser 通过这个去解析endpoint,
非本地和location;所以一般情况不要使用这个 regionId,
|
static DefaultProfile |
getProfile(String regionId,
Map<String,String> productDomainMap,
String accessKeyId,
String secret,
String stsToken) |
static DefaultProfile |
getProfile(String regionId,
String accessKeyId,
String secret) |
static DefaultProfile |
getProfile(String regionId,
String accessKeyId,
String secret,
String stsToken) |
String |
getRegionId() |
ISigner |
getSigner()
Deprecated.
|
void |
mockRemoteProvider(EndpointResolver remoteProvider) |
void |
setCertPath(String certPath)
use HttpClientConfig.setCertPath instead
|
void |
setCredentialsProvider(AlibabaCloudCredentialsProvider credentialsProvider)
This method exists because ClientProfile holds too much modules like endpoint management
|
void |
setHttpClientConfig(HttpClientConfig httpClientConfig) |
void |
setLocationConfig(String regionId,
String product,
String endpoint) |
public String getRegionId()
getRegionId in interface IClientProfilepublic FormatType getFormat()
getFormat in interface IClientProfilepublic Credential getCredential()
getCredential in interface IClientProfile@Deprecated public ISigner getSigner()
getSigner in interface IClientProfilepublic void setLocationConfig(String regionId, String product, String endpoint)
setLocationConfig in interface IClientProfilepublic List<Endpoint> getEndpoints() throws ClientException
getEndpoints in interface IClientProfileClientExceptionpublic List<Endpoint> getEndpoints(String regionId, String product) throws ClientException
getEndpoints in interface IClientProfileClientExceptionpublic List<Endpoint> getEndpoints(String product, String regionId, String serviceCode, String endpointType) throws ClientException
getEndpoints in interface IClientProfileClientExceptionpublic static DefaultProfile getProfile()
public static DefaultProfile getProfile(String regionId, ICredentialProvider icredential)
public static DefaultProfile getProfile(String regionId, String accessKeyId, String secret)
public static DefaultProfile getProfile(String regionId, String accessKeyId, String secret, String stsToken)
public static DefaultProfile getProfile(String regionId, Map<String,String> productDomainMap, String accessKeyId, String secret)
给个性化用户使用的,CustomizedEndpointsParser 通过这个去解析endpoint, 非本地和location;所以一般情况不要使用这个 regionId,eg: cn-hangzhou productDomainMap,eg: Map
public static DefaultProfile getProfile(String regionId, Map<String,String> productDomainMap, String accessKeyId, String secret, String stsToken)
public static DefaultProfile getProfile(String regionId, EndpointResolver provider, String accessKeyId, String secret)
public static DefaultProfile getProfile(String regionId, EndpointResolver provider, String accessKeyId, String secret, String stsToken)
public static DefaultProfile getProfile(String regionId)
public static void addEndpoint(String endpointName, String regionId, String product, String domain) throws ClientException
ClientExceptionpublic static void addEndpoint(String endpointName, String regionId, String product, String domain, boolean isNeverExpire) throws ClientException
ClientExceptionpublic void mockRemoteProvider(EndpointResolver remoteProvider)
public void setCredentialsProvider(AlibabaCloudCredentialsProvider credentialsProvider)
IClientProfilesetCredentialsProvider in interface IClientProfilepublic String getCertPath()
IClientProfilegetCertPath in interface IClientProfilepublic void setCertPath(String certPath)
IClientProfilesetCertPath in interface IClientProfilepublic HttpClientConfig getHttpClientConfig()
IClientProfilegetHttpClientConfig in interface IClientProfilepublic void setHttpClientConfig(HttpClientConfig httpClientConfig)
setHttpClientConfig in interface IClientProfileCopyright © 2018. All Rights Reserved.