com.tencentcloudapi.common.CommonClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-common Show documentation
Show all versions of tencentcloud-sdk-java-common Show documentation
Tencent Cloud Open API SDK for Java
The newest version!
package com.tencentcloudapi.common;
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
import com.tencentcloudapi.common.profile.ClientProfile;
import java.lang.reflect.Type;
public class CommonClient extends AbstractClient {
public CommonClient(String productName, String version, Credential credential, String region) {
this(productName, version, credential, region, new ClientProfile());
}
public CommonClient(String productName, String version,
Credential credential, String region, ClientProfile profile) {
super(productName + ".tencentcloudapi.com", version, credential, region, profile);
}
public String commonRequest(AbstractModel req, String actionName) throws TencentCloudSDKException {
return internalRequest(req, actionName);
}
public T commonRequest(AbstractModel req, String actionName, Class typeOfT) throws TencentCloudSDKException {
return internalRequest(req, actionName, typeOfT);
}
}