Package com.rackspacecloud.client.cloudfiles

Examples of com.rackspacecloud.client.cloudfiles.FilesClient.createContainer()


      FilesClient client = new FilesClient();
      // client.setUseETag(false);
      assertTrue(client.login());
     
      // Set up
      client.createContainer(containerName);
     
      // Store it
      assertTrue(client.storeObject(containerName, randomData, "application/octet-stream", filename, new HashMap<String,String>()));
     
      // Make sure it's there
View Full Code Here


    try {
      FilesClient client = new FilesClient(FilesUtil.getProperty("username"), FilesUtil.getProperty("password"), FilesUtil.getProperty("account"));
      assertTrue(client.login());
     
      // Set up
      client.createContainer(containerName);
     
     
      // Make sure it's there
      assertTrue(client.containerExists(containerName));
View Full Code Here

      byte randomData[] = makeRandomFile(fullPath);
      FilesClient client = new FilesClient(FilesUtil.getProperty("username"), FilesUtil.getProperty("password"), FilesUtil.getProperty("account"));
      assertTrue(client.login());
     
      // Set up
      client.createContainer(containerName);
     
      // Store it
      assertNotNull(client.storeObjectAs(containerName, new File(fullPath), "application/octet-stream", filename));
     
      // Make sure it's there
View Full Code Here

      FilesClient client = new FilesClient();
      // client.setUseETag(false);
      assertTrue(client.login());
     
      // Set up
      client.createContainer(containerName);
      String cdnUrl = client.cdnEnableContainer(containerName);
     
      // Store it
      assertTrue(client.storeObject(containerName, randomData, "application/octet-stream", filename, new HashMap<String,String>()));
     
View Full Code Here

      FilesClient client = new FilesClient();
      // client.setUseETag(false);
      assertTrue(client.login());
     
      // Set up
      client.createContainer(containerName);
      String cdnUrl = client.cdnEnableContainer(containerName);
      assertNotNull(cdnUrl);
     
      //client.purgeCDNContainer(containerName, "lowell.vaughn@rackspace.com");
      //client.purgeCDNContainer(containerName, null);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.