public class KscCdnClient<R> extends KscApiCommon implements KscCdnDomain, KscCdnStatistics, KscCdnLog, KscCdnContent, KscCdnHttps, KscCdnBlockUrl, KscIpCheck
ADD_DOMAIN_ACTION, ADD_DOMAIN_URL, ADD_DOMAIN_V2_ACTION, ADD_DOMAIN_V2_URL, ADD_DOMAIN_V2_VERSION, ADD_DOMAIN_VERSION, BACK_ORIGIN_ACTION, BACK_ORIGIN_URL, BACK_ORIGIN_VERSION, CONFIG_ACTION, CONFIG_URL, CONFIG_VERSION, DELETECDNDOMAIN_ACTION, DELETECDNDOMAIN_URL, DELETECDNDOMAIN_VERSION, DELETEHTTPHEADERSCONFIG_ACTION, DELETEHTTPHEADERSCONFIG_URL, DELETEHTTPHEADERSCONFIG_VERSION, GETCDNDOMAINS_ACTION, GETCDNDOMAINS_URL, GETCDNDOMAINS_VERSION, GETCNAMESUFFIXS_ACTION, GETCNAMESUFFIXS_URL, GETCNAMESUFFIXS_VERSION, GETDOMAINSBYORIGIN_ACTION, GETDOMAINSBYORIGIN_URL, GETDOMAINSBYORIGIN_VERSION, GETHTTPHEADERLIST_ACTION, GETHTTPHEADERLIST_URL, GETHTTPHEADERLIST_VERSION, GETSERVICEIP_ACTION, GETSERVICEIP_URL, GETSERVICEIP_VERSION, GETVIDEOSEEKCONFIG_ACTION, GETVIDEOSEEKCONFIG_URL, GETVIDEOSEEKCONFIG_VERSION, IGNORE_QUERY_STRING_ACTION, IGNORE_QUERY_STRING_URL, IGNORE_QUERY_STRING_VERSION, IP_PROTECTION_ACTION, IP_PROTECTION_URL, IP_PROTECTION_VERSION, MODIFY_DOMAIN_ACTION, MODIFY_DOMAIN_URL, MODIFY_DOMAIN_VERSION, NOPAHT_URL, QUERY_DOMAIN_ACTION, QUERY_DOMAIN_URL, QUERY_DOMAIN_VERSION, REFER_PROTECTION_ACTION, REFER_PROTECTION_URL, REFER_PROTECTION_VERSION, SETCACHERULECONFIG_ACTION, SETCACHERULECONFIG_URL, SETCACHERULECONFIG_VERSION, SETDOMAINCONFIGS_ACTION, SETDOMAINCONFIGS_URL, SETDOMAINCONFIGS_VERSION, SETERRORPAGECONFIG_ACTION, SETFORCEREDIRECTCONFIG_ACTION, SETHTTP2OPTIONCONFIG_ACTION, SETHTTPHEADERSCONFIG_ACTION, SETHTTPHEADERSCONFIG_URL, SETHTTPHEADERSCONFIG_VERSION, SETORIGINADVANCEDCONFIG_ACTION, SETORIGINADVANCEDCONFIG_URL, SETORIGINADVANCEDCONFIG_VERSION, SETPAGECOMPRESSCONFIG_ACTION, SETREMARKCONFIG_ACTION, SETREMARKCONFIG_URL, SETREMARKCONFIG_VERSION, SETREQUESTAUTHCONFIG_ACTION, SETREQUESTAUTHCONFIG_URL, SETREQUESTAUTHCONFIG_VERSION, SETTESTURLCONFIG_ACTION, SETTESTURLCONFIG_URL, SETTESTURLCONFIG_VERSION, SETVIDEOSEEKCONFIG_ACTION, SETVIDEOSEEKCONFIG_URL, SETVIDEOSEEKCONFIG_VERSION, STARTSTOPCDNDOMAIN_ACTION, STARTSTOPCDNDOMAIN_URL, STARTSTOPCDNDOMAIN_VERSION, VERSION_20160901| Constructor and Description |
|---|
KscCdnClient() |
KscCdnClient(String accessKey,
String secretKey) |
KscCdnClient(String accessKey,
String secretKey,
String endPoint,
String region,
String serviceName) |
buildHeaders, buildHeaders, getAccessKey, getApiRegion, getApiServiceName, getEndPoint, getSecretAccessKey, httpExecute, setAccessKey, setApiRegion, setApiServiceName, setEndPoint, setSecretAccessKeypublic GetServiceIpResult getServiceIp(String domainId) throws Exception
getServiceIp in interface KscCdnDomainExceptionpublic void setDomainConfigs(AllConfigsRequest allConfigs) throws Exception
setDomainConfigs in interface KscCdnDomainExceptionpublic GetDomainsByOriginResult getDomainsByOrigin(String origin) throws Exception
getDomainsByOrigin in interface KscCdnDomainExceptionpublic GetCnameSuffixsResult getCnameSuffixs() throws Exception
getCnameSuffixs in interface KscCdnDomainExceptionpublic GetCdnDomainsResult getCdnDomains(GetCdnDomainsRequest getCdnDomainsRequest) throws Exception
KscCdnDomaingetCdnDomains in interface KscCdnDomainExceptionpublic AddDomainResult addDomainBase(AddDomainRequest addDomainRequest) throws Exception
KscCdnDomainaddDomainBase in interface KscCdnDomainExceptionpublic AddDomainResult addDomainV2Base(AddDomainRequest addDomainRequest) throws Exception
KscCdnDomainaddDomainV2Base in interface KscCdnDomainExceptionpublic GetDomainBaseResult getCdnDomainBasic(String domainId) throws Exception
KscCdnDomaingetCdnDomainBasic in interface KscCdnDomaindomainId - 域名ID,只允许输入单个域名IDExceptionpublic void updateDomainBase(ModifyDomainRequest modifyParam) throws Exception
KscCdnDomainupdateDomainBase in interface KscCdnDomainExceptionpublic void startStopCdnDomain(String domainId, ActionTypeEnum action) throws Exception
KscCdnDomainstartStopCdnDomain in interface KscCdnDomainExceptionpublic String deleteCdnDomain(String domainId) throws Exception
KscCdnDomain此操作只允许删除 DomainStatus 为已停止的域名; 此操作不可恢复,删除后域名将不可访问,请慎重操作; DeleteCdnDomain调用成功后,本条加速域名的带宽、计费数据仍然会被保留,其他全部相关记录都将被删除。
deleteCdnDomain in interface KscCdnDomainExceptionpublic GetDomainConfigResult getDomainConfigs(String domainId, DomainConfigEnum... configs) throws Exception
KscCdnDomaingetDomainConfigs in interface KscCdnDomainExceptionpublic void setIgnoreQueryStringConfig(String domainId, SwitchEnum enable) throws Exception
KscCdnDomainsetIgnoreQueryStringConfig in interface KscCdnDomainenable - 配置是否开启或关闭 取值:on、off。默认值为onExceptionpublic void setBackOriginConfig(String domainId, String originHost) throws Exception
KscCdnDomainsetBackOriginConfig in interface KscCdnDomainoriginHost - 若源站为KS3域名,需将ks3域名设置为回源host(即源站域名),方可正常回源Exceptionpublic void setReferProtectionConfig(ReferProtectionRequest referProtection) throws Exception
KscCdnDomainsetReferProtectionConfig in interface KscCdnDomainExceptionpublic void setIpProtectionConfig(IpProtectionRequest ipProtection) throws Exception
KscCdnDomainsetIpProtectionConfig in interface KscCdnDomainExceptionpublic void setCacheRule(CacheConfigRequest cacheRuleConfig) throws Exception
KscCdnDomainsetCacheRule in interface KscCdnDomainExceptionpublic void setTestUrl(String domainId, String testUrl) throws Exception
KscCdnDomainsetTestUrl in interface KscCdnDomainExceptionpublic void setOriginAdvanced(OriginAdvancedConfigRequest originAdvancedConfig) throws Exception
KscCdnDomainsetOriginAdvanced in interface KscCdnDomainExceptionpublic void setRemark(String domainId, String remark) throws Exception
KscCdnDomainsetRemark in interface KscCdnDomainExceptionpublic R generalGetStatisticsData(GeneralRequest request, Class rType) throws Exception
KscCdnStatisticsgeneralGetStatisticsData in interface KscCdnStatisticsrequest - 请求参数对象Exceptionpublic RefreshCachesResult refreshCaches(RefreshCachesRequest request) throws Exception
KscCdnContentrefreshCaches in interface KscCdnContentExceptionpublic PreloadCachesResult preloadCaches(PreloadCachesRequest request) throws Exception
KscCdnContentpreloadCaches in interface KscCdnContentExceptionpublic RefreshOrPreloadTaskResult getRefreshOrPreloadTask(RefreshOrPreloadTaskRequest request) throws Exception
KscCdnContentgetRefreshOrPreloadTask in interface KscCdnContentExceptionpublic RefreshOrPreloadQuotaResult getRefreshOrPreloadQuota(RefreshOrPreloadQuotaRequest request) throws Exception
KscCdnContentgetRefreshOrPreloadQuota in interface KscCdnContentExceptionpublic DomainLogsResult getDomainLogs(DomainLogsRequest request) throws Exception
KscCdnLoggetDomainLogs in interface KscCdnLogExceptionpublic void setDomainLogService(DomainLogServiceRequest request) throws Exception
KscCdnLogsetDomainLogService in interface KscCdnLogExceptionpublic DomainLogServiceStatusResult getDomainLogServiceStatus(DomainLogServiceStatusRequest request) throws Exception
KscCdnLoggetDomainLogServiceStatus in interface KscCdnLogExceptionpublic void blockDomainUrl(BlockDomainUrlRequest request) throws Exception
KscCdnBlockUrlblockDomainUrl in interface KscCdnBlockUrlExceptionpublic GetBlockUrlTaskResponse getBlockUrlTask(GetBlockUrlTaskRequest request) throws Exception
KscCdnBlockUrlgetBlockUrlTask in interface KscCdnBlockUrlExceptionpublic GetBlockUrlQuotaResponse getBlockUrlQuota() throws Exception
KscCdnBlockUrlgetBlockUrlQuota in interface KscCdnBlockUrlExceptionpublic void configCertificate(HttpsConfCertRequest request) throws Exception
KscCdnHttpsconfigCertificate in interface KscCdnHttpsExceptionpublic void setCertificate(HttpsSetCertRequest request) throws Exception
KscCdnHttpssetCertificate in interface KscCdnHttpsExceptionpublic void removeCertificates(HttpsRemoveCertRequest request) throws Exception
KscCdnHttpsremoveCertificates in interface KscCdnHttpsExceptionpublic HttpsGetCertResponse getCertificates(HttpsGetCertRequest request) throws Exception
KscCdnHttpsgetCertificates in interface KscCdnHttpsExceptionpublic void setVideoSeekConfig(String domainId, SwitchEnum enable) throws Exception
KscCdnDomainsetVideoSeekConfig in interface KscCdnDomainExceptionpublic VideoSeekConfig getVideoSeekConfig(String domainId) throws Exception
KscCdnDomaingetVideoSeekConfig in interface KscCdnDomainExceptionpublic void setHttpHeadersConfig(String domainId, HttpHeaderKeyEnum httpHeaderKeyEnum, String headerValue) throws Exception
KscCdnDomainsetHttpHeadersConfig in interface KscCdnDomainExceptionpublic void deleteHttpHeadersConfig(String domainId, HttpHeaderKeyEnum httpHeaderKeyEnum) throws Exception
KscCdnDomaindeleteHttpHeadersConfig in interface KscCdnDomainExceptionpublic HttpHeadersList getHttpHeaderList(String domainId) throws Exception
KscCdnDomaingetHttpHeaderList in interface KscCdnDomainExceptionpublic IpCheckResponse ipCheck(IpCheckRequest request) throws Exception
KscIpCheckipCheck in interface KscIpCheckExceptionpublic void setRequestAuthConfig(RequestAuthConfig requestAuthConfig) throws Exception
KscCdnDomainsetRequestAuthConfig in interface KscCdnDomainExceptionpublic void setForceRedirectConfig(ForceRedirectConfig forceRedirectConfig) throws Exception
KscCdnDomainsetForceRedirectConfig in interface KscCdnDomainExceptionpublic void setHttp2OptionConfig(Http2OptionConfig http2OptionConfig) throws Exception
KscCdnDomainsetHttp2OptionConfig in interface KscCdnDomainExceptionpublic void setErrorPageConfig(ErrorPageConfig errorPageConfig) throws Exception
KscCdnDomainsetErrorPageConfig in interface KscCdnDomainExceptionpublic void setPageCompressConfig(PageCompressConfig pageCompressConfig) throws Exception
KscCdnDomainsetPageCompressConfig in interface KscCdnDomainExceptionpublic void setIgnoreQueryStringConfig(IgnoreQueryStringConfig ignoreQueryStringConfig) throws Exception
KscCdnDomainsetIgnoreQueryStringConfig in interface KscCdnDomainExceptionCopyright © 2023. All rights reserved.