public class DefaultAcsClient extends Object implements IAcsClient
| Constructor and Description |
|---|
DefaultAcsClient()
Deprecated.
|
DefaultAcsClient(IClientProfile profile) |
DefaultAcsClient(IClientProfile profile,
AlibabaCloudCredentials credentials) |
DefaultAcsClient(IClientProfile profile,
AlibabaCloudCredentialsProvider credentialsProvider) |
DefaultAcsClient(String regionId) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendUserAgent(String key,
String value) |
<T extends AcsResponse> |
doAction(AcsRequest<T> request) |
<T extends AcsResponse> |
doAction(AcsRequest<T> request,
boolean autoRetry,
int maxRetryCounts) |
<T extends AcsResponse> |
doAction(AcsRequest<T> request,
boolean autoRetry,
int maxRetryCounts,
IClientProfile profile) |
<T extends AcsResponse> |
doAction(AcsRequest<T> request,
boolean autoRetry,
int maxRetryNumber,
String regionId,
Credential credential,
Signer signer,
FormatType format)
Deprecated.
|
<T extends AcsResponse> |
doAction(AcsRequest<T> request,
IClientProfile profile) |
<T extends AcsResponse> |
doAction(AcsRequest<T> request,
String regionId,
Credential credential) |
void |
doActionWithIgnoreSSL(AcsRequest request,
boolean isIgnore)
Compatible with previous versions of SSL Settings
|
void |
doActionWithProxy(ProtocolType protocolType,
String httpsProxy,
String httpProxy)
Compatible with previous versions of proxy Settings
|
<T extends AcsResponse> |
getAcsResponse(AcsRequest<T> request) |
<T extends AcsResponse> |
getAcsResponse(AcsRequest<T> request,
boolean autoRetry,
int maxRetryCounts) |
<T extends AcsResponse> |
getAcsResponse(AcsRequest<T> request,
IClientProfile profile) |
<T extends AcsResponse> |
getAcsResponse(AcsRequest<T> request,
String regionId) |
<T extends AcsResponse> |
getAcsResponse(AcsRequest<T> request,
String regionId,
Credential credential) |
CommonResponse |
getCommonResponse(CommonRequest request) |
AlibabaCloudCredentialsProvider |
getCredentialsProvider() |
ProductDomain |
getDomain(AcsRequest request,
String regionId) |
IHttpClient |
getHttpClient() |
int |
getMaxRetryNumber()
Deprecated.
|
DefaultProfile |
getProfile() |
SignatureAlgorithm |
getSignatureAlgorithm() |
SignatureVersion |
getSignatureVersion() |
RetryPolicy |
getSysRetryPolicy() |
UserAgentConfig |
getUserAgentConfig() |
void |
ignoreSSLCertificate() |
boolean |
isAutoRetry()
Deprecated.
|
protected <T extends AcsResponse> |
readResponse(Class<T> clasz,
HttpResponse httpResponse,
FormatType format)
2019-01-03 change access control from private to protected, then subClass can
override it and rewrite httpResponse processing
|
void |
restoreSSLCertificate() |
void |
setAutoRetry(boolean autoRetry)
Deprecated.
|
void |
setEndpointResolver(EndpointResolver resolver) |
void |
setHttpClient(IHttpClient httpClient) |
void |
setMaxRetryNumber(int maxRetryNumber)
Deprecated.
|
void |
setSignatureAlgorithm(SignatureAlgorithm signatureAlgorithm) |
void |
setSignatureVersion(SignatureVersion signatureVersion) |
void |
setSysRetryPolicy(RetryPolicy retryPolicy) |
void |
shutdown() |
@Deprecated public DefaultAcsClient() throws ClientException
ClientExceptionpublic DefaultAcsClient(String regionId) throws ClientException
ClientExceptionpublic DefaultAcsClient(IClientProfile profile)
public DefaultAcsClient(IClientProfile profile, AlibabaCloudCredentials credentials)
public DefaultAcsClient(IClientProfile profile, AlibabaCloudCredentialsProvider credentialsProvider)
public <T extends AcsResponse> HttpResponse doAction(AcsRequest<T> request) throws ClientException, ServerException
doAction in interface IAcsClientClientExceptionServerExceptionpublic <T extends AcsResponse> HttpResponse doAction(AcsRequest<T> request, boolean autoRetry, int maxRetryCounts) throws ClientException, ServerException
doAction in interface IAcsClientClientExceptionServerExceptionpublic <T extends AcsResponse> HttpResponse doAction(AcsRequest<T> request, IClientProfile profile) throws ClientException, ServerException
doAction in interface IAcsClientClientExceptionServerExceptionpublic <T extends AcsResponse> HttpResponse doAction(AcsRequest<T> request, String regionId, Credential credential) throws ClientException, ServerException
doAction in interface IAcsClientClientExceptionServerExceptionpublic <T extends AcsResponse> T getAcsResponse(AcsRequest<T> request) throws ServerException, ClientException
getAcsResponse in interface IAcsClientServerExceptionClientExceptionpublic <T extends AcsResponse> T getAcsResponse(AcsRequest<T> request, boolean autoRetry, int maxRetryCounts) throws ServerException, ClientException
getAcsResponse in interface IAcsClientServerExceptionClientExceptionpublic <T extends AcsResponse> T getAcsResponse(AcsRequest<T> request, IClientProfile profile) throws ServerException, ClientException
getAcsResponse in interface IAcsClientServerExceptionClientExceptionpublic <T extends AcsResponse> T getAcsResponse(AcsRequest<T> request, String regionId, Credential credential) throws ServerException, ClientException
getAcsResponse in interface IAcsClientServerExceptionClientExceptionpublic <T extends AcsResponse> T getAcsResponse(AcsRequest<T> request, String regionId) throws ServerException, ClientException
getAcsResponse in interface IAcsClientServerExceptionClientExceptionpublic CommonResponse getCommonResponse(CommonRequest request) throws ServerException, ClientException
getCommonResponse in interface IAcsClientServerExceptionClientExceptionpublic <T extends AcsResponse> HttpResponse doAction(AcsRequest<T> request, boolean autoRetry, int maxRetryCounts, IClientProfile profile) throws ClientException, ServerException
doAction in interface IAcsClientClientExceptionServerException@Deprecated public <T extends AcsResponse> HttpResponse doAction(AcsRequest<T> request, boolean autoRetry, int maxRetryNumber, String regionId, Credential credential, Signer signer, FormatType format) throws ClientException, ServerException
ClientExceptionServerExceptionpublic ProductDomain getDomain(AcsRequest request, String regionId) throws ClientException
ClientExceptionprotected <T extends AcsResponse> T readResponse(Class<T> clasz, HttpResponse httpResponse, FormatType format) throws ClientException
ClientExceptionpublic void doActionWithProxy(ProtocolType protocolType, String httpsProxy, String httpProxy)
public void doActionWithIgnoreSSL(AcsRequest request, boolean isIgnore)
@Deprecated public boolean isAutoRetry()
@Deprecated public void setAutoRetry(boolean autoRetry)
@Deprecated public int getMaxRetryNumber()
@Deprecated public void setMaxRetryNumber(int maxRetryNumber)
public void restoreSSLCertificate()
restoreSSLCertificate in interface IAcsClientpublic void ignoreSSLCertificate()
ignoreSSLCertificate in interface IAcsClientpublic void setEndpointResolver(EndpointResolver resolver)
public void shutdown()
shutdown in interface IAcsClientpublic DefaultProfile getProfile()
public UserAgentConfig getUserAgentConfig()
public IHttpClient getHttpClient()
public void setHttpClient(IHttpClient httpClient)
public AlibabaCloudCredentialsProvider getCredentialsProvider()
public SignatureVersion getSignatureVersion()
getSignatureVersion in interface IAcsClientpublic void setSignatureVersion(SignatureVersion signatureVersion)
setSignatureVersion in interface IAcsClientpublic SignatureAlgorithm getSignatureAlgorithm()
getSignatureAlgorithm in interface IAcsClientpublic void setSignatureAlgorithm(SignatureAlgorithm signatureAlgorithm)
setSignatureAlgorithm in interface IAcsClientpublic RetryPolicy getSysRetryPolicy()
getSysRetryPolicy in interface IAcsClientpublic void setSysRetryPolicy(RetryPolicy retryPolicy)
setSysRetryPolicy in interface IAcsClientCopyright © 2022. All rights reserved.