CdnEndpoint Interface
public interface CdnEndpoint extends ExternalChildResource<CdnEndpoint, CdnProfile>,HasInner
An immutable client-side representation of an Azure CDN endpoint.
Method Summary
Modifier and Type | Method and Description |
---|---|
Set<String> | contentTypesToCompress() |
Set<String> | customDomains() |
List<Geo |
geoFilters() |
String | hostName() |
int | httpPort() |
int | httpsPort() |
boolean | isCompressionEnabled() |
boolean | isHttpAllowed() |
boolean | isHttpsAllowed() |
PagedList<Resource |
listResourceUsage()
Checks the quota and usage of geo filters and custom domains under the current endpoint. |
void |
loadContent(Set<String> contentPaths)
Forcibly preloads the content of the CDN endpoint. Note: this is supported for Verizon profiles only. |
Completable |
loadContentAsync(Set<String> contentPaths)
Forcibly preloads the content of the CDN endpoint asynchronously. Note: this is supported for Verizon profiles only. |
ServiceFuture<Void> |
loadContentAsync(Set<String> contentPaths, ServiceCallback<Void> callback)
Forcibly preloads the content of the CDN endpoint asynchronously. Note: this is supported for Verizon profiles only. |
String | optimizationType() |
String | originHostHeader() |
String | originHostName() |
String | originPath() |
String | provisioningState() |
void |
purgeContent(Set<String> contentPaths)
Forcibly purges the content of the CDN endpoint. |
Completable |
purgeContentAsync(Set<String> contentPaths)
Forcibly purges the content of the CDN endpoint asynchronously. |
ServiceFuture<Void> |
purgeContentAsync(Set<String> contentPaths, ServiceCallback<Void> callback)
Forcibly purges the content of the CDN endpoint asynchronously. |
Query |
queryStringCachingBehavior() |
Endpoint |
resourceState() |
void |
start()
Starts the CDN endpoint, if it is stopped. |
Completable |
startAsync()
Starts the CDN endpoint asynchronously, if it is stopped. |
ServiceFuture<Void> |
startAsync(ServiceCallback<Void> callback)
Starts the CDN endpoint asynchronously, if it is stopped. |
void |
stop()
Stops the CDN endpoint, if it is running. |
Completable |
stopAsync()
Stops the CDN endpoint asynchronously, if it is running. |
ServiceFuture<Void> |
stopAsync(ServiceCallback<Void> callback)
Stops the CDN endpoint asynchronously, if it is running. |
Custom |
validateCustomDomain(String hostName)
Validates a custom domain mapping to ensure it maps to the correct CNAME in DNS for current endpoint. |
Observable<Custom |
validateCustomDomainAsync(String hostName)
Validates a custom domain mapping to ensure it maps to the correct CNAME in DNS for current endpoint asynchronously. |
ServiceFuture<Custom |
validateCustomDomainAsync(String hostName, ServiceCallback<CustomDomainValidationResult> callback)
Validates a custom domain mapping to ensure it maps to the correct CNAME in DNS for current endpoint asynchronously. |
Inherited Members
Method Details
contentTypesToCompress
public Set
Returns:
customDomains
public Set
Returns:
geoFilters
public List
Returns:
hostName
public String hostName()
Returns:
httpPort
public int httpPort()
Returns:
httpsPort
public int httpsPort()
Returns:
isCompressionEnabled
public boolean isCompressionEnabled()
Returns:
isHttpAllowed
public boolean isHttpAllowed()
Returns:
isHttpsAllowed
public boolean isHttpsAllowed()
Returns:
listResourceUsage
public PagedList
Checks the quota and usage of geo filters and custom domains under the current endpoint.
Returns:
loadContent
public void loadContent(Set
Forcibly preloads the content of the CDN endpoint.
Note: this is supported for Verizon profiles only.
Parameters:
loadContentAsync
public Completable loadContentAsync(Set
Forcibly preloads the content of the CDN endpoint asynchronously.
Note: this is supported for Verizon profiles only.
Parameters:
Returns:
loadContentAsync
public ServiceFuture
Forcibly preloads the content of the CDN endpoint asynchronously.
Note: this is supported for Verizon profiles only.
Parameters:
Returns:
optimizationType
public String optimizationType()
Returns:
originHostHeader
public String originHostHeader()
Returns:
originHostName
public String originHostName()
Returns:
originPath
public String originPath()
Returns:
provisioningState
public String provisioningState()
Returns:
purgeContent
public void purgeContent(Set
Forcibly purges the content of the CDN endpoint.
Parameters:
purgeContentAsync
public Completable purgeContentAsync(Set
Forcibly purges the content of the CDN endpoint asynchronously.
Parameters:
Returns:
purgeContentAsync
public ServiceFuture
Forcibly purges the content of the CDN endpoint asynchronously.
Parameters:
Returns:
queryStringCachingBehavior
public QueryStringCachingBehavior queryStringCachingBehavior()
Returns:
resourceState
public EndpointResourceState resourceState()
Returns:
start
public void start()
Starts the CDN endpoint, if it is stopped.
startAsync
public Completable startAsync()
Starts the CDN endpoint asynchronously, if it is stopped.
Returns:
startAsync
public ServiceFuture
Starts the CDN endpoint asynchronously, if it is stopped.
Parameters:
Returns:
stop
public void stop()
Stops the CDN endpoint, if it is running.
stopAsync
public Completable stopAsync()
Stops the CDN endpoint asynchronously, if it is running.
Returns:
stopAsync
public ServiceFuture
Stops the CDN endpoint asynchronously, if it is running.
Parameters:
Returns:
validateCustomDomain
public CustomDomainValidationResult validateCustomDomain(String hostName)
Validates a custom domain mapping to ensure it maps to the correct CNAME in DNS for current endpoint.
Parameters:
Returns:
validateCustomDomainAsync
public Observable
Validates a custom domain mapping to ensure it maps to the correct CNAME in DNS for current endpoint asynchronously.
Parameters:
Returns:
validateCustomDomainAsync
public ServiceFuture
Validates a custom domain mapping to ensure it maps to the correct CNAME in DNS for current endpoint asynchronously.
Parameters:
Returns:
Applies to
Azure SDK for Java