Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Licensed to jclouds, Inc. (jclouds) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. jclouds licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 package org.jclouds.cloudfiles;
 
 import java.net.URI;
 import java.util.List;
 import java.util.Set;
 
 
 
Provides asynchronous access to Cloud Files via their REST API.

All commands return a ListenableFuture of the result from Cloud Files. Any exceptions incurred during processing will be backend in an java.util.concurrent.ExecutionException as documented in java.util.concurrent.Future.get().

Author(s):
Adrian Cole
See also:
CloudFilesClient
 
 public interface CloudFilesAsyncClient extends CommonSwiftAsyncClient {

   
 
    @GET
    @QueryParams(keys = "format", values = "json")
    @Path("/")
    @Endpoint(CDNManagement.class)
 
    @HEAD
    @Path("/{container}")
    @Endpoint(CDNManagement.class)
    ListenableFuture<ContainerCDNMetadatagetCDNMetadata(@PathParam("container"String container);

   

See also:
CloudFilesClient.enableCDN(String, long, boolean);
 
    @PUT
    @Path("/{container}")
    @Headers(keys = ., values = "True")
    @Endpoint(CDNManagement.class)
   ListenableFuture<URIenableCDN(@PathParam("container"String container,
                                   @HeaderParam(.long ttl,
                                   @HeaderParam(.boolean logRetention);

   

See also:
CloudFilesClient.enableCDN(String, long);
   @PUT
   @Path("/{container}")
   @Headers(keys = ., values = "True")
   ListenableFuture<URIenableCDN(@PathParam("container"String container,
                                   @HeaderParam(.long ttl);

   
   @PUT
   @Path("/{container}")
   @Headers(keys = ., values = "True")
   ListenableFuture<URIenableCDN(@PathParam("container"String container);

   
   @POST
   @Path("/{container}")
   ListenableFuture<URIupdateCDN(@PathParam("container"String container,
                                   @HeaderParam(.long ttl,
                                   @HeaderParam(.boolean logRetention);

   
   @POST
   @Path("/{container}")
   ListenableFuture<URIupdateCDN(@PathParam("container"String container,
                                   @HeaderParam(.boolean logRetention);

   
   @POST
   @Path("/{container}")
   ListenableFuture<URIupdateCDN(@PathParam("container"String container,
                                   @HeaderParam(.long ttl);

   
   @POST
   @Path("/{container}")
   @Headers(keys = ., values = "False")
   ListenableFuture<BooleandisableCDN(@PathParam("container"String container);

   
   @DELETE
   @Path("/{container}/{object}")
   @Headers(keys = ., values = "{email}")
   ListenableFuture<BooleanpurgeCDNObject(@PathParam("container"String container
                                            @PathParam("object"String object,
                                            @BinderParam(BindIterableToHeadersWithPurgeCDNObjectEmail.classIterable<Stringemails);

   
   @DELETE
   @Path("/{container}/{object}")
   ListenableFuture<BooleanpurgeCDNObject(@PathParam("container"String container
                                            @PathParam("object"String object);

   
   @POST
   @Path("/{container}")
   @Headers(keys = ., values = "{index}")
                                                      @PathParam("index"String index);

   
   @POST
   @Path("/{container}")
   @Headers(keys = ., values = "{error}")
                                                      @PathParam("error"String error);
New to GrepCode? Check out our FAQ X