public abstract class BaseGwClient<REQ extends BaseClientRequest,RES extends BaseClientResponse>
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
BaseGwClient.Builder<T,B extends BaseGwClient.Builder<T,B>> |
| 限定符和类型 | 字段和说明 |
|---|---|
protected AntCloudHttpClient |
httpClient |
| 构造器和说明 |
|---|
BaseGwClient(java.lang.String endpoint,
java.lang.String accessKey,
java.lang.String accessSecret,
boolean checkSign,
boolean enableAutoRetry,
int autoRetryLimit,
AntCloudHttpClient httpClient) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.apache.http.client.methods.HttpUriRequest |
buildRequest(java.lang.String endpoint,
java.util.Map<java.lang.String,java.lang.String> request) |
RES |
execute(REQ request) |
java.lang.String |
getAccessKey() |
java.lang.String |
getAccessSecret() |
java.lang.String |
getEndpoint() |
boolean |
isCheckSign() |
protected RES |
newResponse() |
protected AntCloudHttpClient httpClient
public BaseGwClient(java.lang.String endpoint,
java.lang.String accessKey,
java.lang.String accessSecret,
boolean checkSign,
boolean enableAutoRetry,
int autoRetryLimit,
AntCloudHttpClient httpClient)
public java.lang.String getEndpoint()
public java.lang.String getAccessKey()
public java.lang.String getAccessSecret()
public boolean isCheckSign()
protected org.apache.http.client.methods.HttpUriRequest buildRequest(java.lang.String endpoint,
java.util.Map<java.lang.String,java.lang.String> request)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic RES execute(REQ request) throws java.lang.InterruptedException
java.lang.InterruptedExceptionprotected RES newResponse()
Copyright © 2018. All Rights Reserved.