public class CdnClient extends AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX| Constructor and Description |
|---|
CdnClient()
Constructs a new Document client to invoke service methods on CDN.
|
CdnClient(BceClientConfiguration clientConfiguration)
Constructs a new client using the client configuration to access CDN services.
|
| Modifier and Type | Method and Description |
|---|---|
GetPrefetchStatusResponse |
getPrefetchStatus(GetPrefetchStatusRequest request)
Get prefetch status with specified attributes.
|
GetPurgeStatusResponse |
getPurgeStatus(GetPurgeStatusRequest request)
Get purge status with specified attributes.
|
GetStatFlowResponse |
getStatFlow(GetStatFlowRequest request)
Get flow statistics with specified attributes.
|
ListDomainsResponse |
listDomains()
Returns a list of all CDN domains that the authenticated sender of the request owns.
|
ListDomainsResponse |
listDomains(ListDomainsRequest request)
Returns a list of all CDN domains that the authenticated sender of the request owns.
|
PrefetchResponse |
prefetch(PrefetchRequest request)
Post prefetch request
|
PurgeResponse |
purge(PurgeRequest request)
Post purge request
|
getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdownpublic CdnClient()
public CdnClient(BceClientConfiguration clientConfiguration)
clientConfiguration - The client configuration options controlling how this client
connects to Document services (e.g. proxy settings, retry counts, etc).public ListDomainsResponse listDomains()
public ListDomainsResponse listDomains(ListDomainsRequest request)
request - The request containing all of the options related to the listing of domains.public PrefetchResponse prefetch(PrefetchRequest request)
request - The request containing all of the urls to be prefetched.public PurgeResponse purge(PurgeRequest request)
request - The request containing all of the urls to be purged.public GetPurgeStatusResponse getPurgeStatus(GetPurgeStatusRequest request)
request - The request containing the task id returned by purge operation.public GetPrefetchStatusResponse getPrefetchStatus(GetPrefetchStatusRequest request)
request - The request containing the task id returned by prefetch operation.public GetStatFlowResponse getStatFlow(GetStatFlowRequest request)
request - The request containing all the options related to the statistics.Copyright © 2017. All rights reserved.