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) |
| Modifier and Type | Method and Description |
|---|---|
<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) |
<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) |
int |
getMaxRetryNumber()
Deprecated.
|
DefaultProfile |
getProfile() |
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 |
setMaxRetryNumber(int maxRetryNumber)
Deprecated.
|
void |
shutdown() |
@Deprecated public DefaultAcsClient()
public 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
ClientExceptionServerExceptionprotected <T extends AcsResponse> T readResponse(Class<T> clasz, HttpResponse httpResponse, FormatType format) throws ClientException
ClientException@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()
Copyright © 2019. All rights reserved.