use of com.tencentcloudapi.common.exception.TencentCloudSDKException in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class CdnClient method DescribeUrlViolations.
/**
*This API is used to query the list of domain name URLs containing regulation-violating content scanned and detected by the CDN system, and the current status of the URLs.
*It corresponds to the **Pornography Detection** page on the CDN Console.
* @param req DescribeUrlViolationsRequest
* @return DescribeUrlViolationsResponse
* @throws TencentCloudSDKException
*/
public DescribeUrlViolationsResponse DescribeUrlViolations(DescribeUrlViolationsRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeUrlViolationsResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeUrlViolationsResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeUrlViolations");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
use of com.tencentcloudapi.common.exception.TencentCloudSDKException in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class CdnClient method DescribeCertDomains.
/**
*This API is used to verify an SSL certificate and extract the domain names. It will then return the list of domain names connected to CDN and the list of domain names with the certificate configured.
* @param req DescribeCertDomainsRequest
* @return DescribeCertDomainsResponse
* @throws TencentCloudSDKException
*/
public DescribeCertDomainsResponse DescribeCertDomains(DescribeCertDomainsRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeCertDomainsResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeCertDomainsResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeCertDomains");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
use of com.tencentcloudapi.common.exception.TencentCloudSDKException in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class CdnClient method DescribePurgeTasks.
/**
*This API is used to query the record and progress of URL or directory purge tasks submitted via the `PurgePathCache` or `PurgeUrlsCache` APIs.
* @param req DescribePurgeTasksRequest
* @return DescribePurgeTasksResponse
* @throws TencentCloudSDKException
*/
public DescribePurgeTasksResponse DescribePurgeTasks(DescribePurgeTasksRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribePurgeTasksResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribePurgeTasksResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribePurgeTasks");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
use of com.tencentcloudapi.common.exception.TencentCloudSDKException in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class CdnClient method DeleteCdnDomain.
/**
*This API is used to delete a specified acceleration domain name.
* @param req DeleteCdnDomainRequest
* @return DeleteCdnDomainResponse
* @throws TencentCloudSDKException
*/
public DeleteCdnDomainResponse DeleteCdnDomain(DeleteCdnDomainRequest req) throws TencentCloudSDKException {
JsonResponseModel<DeleteCdnDomainResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DeleteCdnDomainResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DeleteCdnDomain");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
use of com.tencentcloudapi.common.exception.TencentCloudSDKException in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class CdnClient method DescribeIpStatus.
/**
*This API is used to query the status of the edge nodes and intermediate nodes. Note: Edge nodes are only available for beta users now.
*
*>? If you have migrated your ECDN service to CDN, you can use the <a href="https://intl.cloud.tencent.com/document/api/228/41954?from_cn_redirect=1">corresponding CDN API</a>.
* @param req DescribeIpStatusRequest
* @return DescribeIpStatusResponse
* @throws TencentCloudSDKException
*/
public DescribeIpStatusResponse DescribeIpStatus(DescribeIpStatusRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeIpStatusResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeIpStatusResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeIpStatus");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
Aggregations