public interface CloudFilesClient extends SwiftClient
Modifier and Type | Method and Description |
---|---|
boolean |
disableCDN(String container)
Remove the container from the CDN.
|
URI |
enableCDN(String container) |
URI |
enableCDN(String container,
long ttl) |
URI |
enableCDN(String container,
long ttl,
boolean logRetention)
Before a container can be CDN-enabled, it must exist in the storage system.
|
ContainerCDNMetadata |
getCDNMetadata(String container)
Get the CDN attributes of the container.
|
Set<ContainerCDNMetadata> |
listCDNContainers(ListCdnContainerOptions... options)
Retrieve a list of existing CDN-enabled containers.
|
boolean |
purgeCDNObject(String container,
String object) |
boolean |
purgeCDNObject(String container,
String object,
Iterable<String> emails)
You can purge a CDN-enabled object when you find it absolutely necessary to remove the object from public access
and you cannot wait for the TTL to expire.
|
boolean |
setCDNStaticWebsiteError(String container,
String error)
You may create and set custom error pages for visitors to your website; currently, only 401 (Unauthorized) and
404 (Not Found) errors are supported.
|
boolean |
setCDNStaticWebsiteIndex(String container,
String index)
You may use your Cloud Files account to create a static website on the World Wide Web.
|
URI |
updateCDN(String container,
boolean logRetention) |
URI |
updateCDN(String container,
long ttl) |
URI |
updateCDN(String container,
long ttl,
boolean logRetention) |
containerExists, copyObject, createContainer, createContainer, deleteContainerIfEmpty, deleteContainerMetadata, getAccountStatistics, getContainerMetadata, getObject, getObjectInfo, listContainers, listObjects, newSwiftObject, objectExists, putObject, putObjectManifest, putObjectManifest, removeObject, setContainerMetadata, setObjectInfo
@Named(value="ListCDNEnabledContainers") Set<ContainerCDNMetadata> listCDNContainers(ListCdnContainerOptions... options)
@Named(value="ListCDNEnabledContainerMetadata") ContainerCDNMetadata getCDNMetadata(String container)
@Named(value="CDNEnableContainer") URI enableCDN(String container, @HeaderParam(value="X-TTL") long ttl, @HeaderParam(value="X-Log-Retention") boolean logRetention)
@Named(value="CDNEnableContainer") URI enableCDN(String container, @HeaderParam(value="X-TTL") long ttl)
enableCDN(String, long, boolean)
@Named(value="CDNEnableContainer") URI enableCDN(String container)
enableCDN(String, long, boolean)
@Named(value="UpdateCDNEnabledContainerMetadata") URI updateCDN(String container, @HeaderParam(value="X-TTL") long ttl, @HeaderParam(value="X-Log-Retention") boolean logRetention)
enableCDN(String, long, boolean)
@Named(value="UpdateCDNEnabledContainerMetadata") URI updateCDN(String container, @HeaderParam(value="X-Log-Retention") boolean logRetention)
enableCDN(String, long, boolean)
@Named(value="UpdateCDNEnabledContainerMetadata") URI updateCDN(String container, @HeaderParam(value="X-TTL") long ttl)
enableCDN(String, long, boolean)
@Named(value="DisableCDNEnabledContainer") boolean disableCDN(String container)
@Named(value="PurgeCDNEnabledObject") boolean purgeCDNObject(String container, String object, Iterable<String> emails)
@Named(value="PurgeCDNEnabledObject") boolean purgeCDNObject(String container, String object)
@Named(value="UpdateCDNEnabledContainerMetadata") boolean setCDNStaticWebsiteIndex(String container, String index)
@Named(value="UpdateCDNEnabledContainerMetadata") boolean setCDNStaticWebsiteError(String container, String error)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.