Package com.rackspacecloud.client.cloudfiles

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


     
      // Add it
      client.createContainer(containerName);
     
      // See that it's there
      assertTrue(client.containerExists(containerName));
     
      // Add a path and two files
      client.createPath(containerName, "test");
     
      List<FilesObject> allObjects = client.listObjects(containerName);
View Full Code Here


      // Delete it
      client.deleteObject(containerName, "test");
      assertTrue(client.deleteContainer(containerName));
     
      // Make sure it's gone
      assertFalse(client.containerExists(containerName));
     
    } catch (Exception e) {
      e.printStackTrace();
      fail(e.getMessage());
    }
View Full Code Here

    try {
      assertTrue(client.login());
      String containerName = createTempContainerName("pathTest");
     
      // Make sure it's not there
      assertFalse(client.containerExists(containerName));
     
      // Add it
      client.createContainer(containerName);
     
      // See that it's there
View Full Code Here

     
      // Add it
      client.createContainer(containerName);
     
      // See that it's there
      assertTrue(client.containerExists(containerName));
     
      // Add a path and two files
      byte randomData[] = makeRandomBytes();
      client.createPath(containerName, "foo");
      client.storeObject(containerName, randomData, "application/octet-stream", "notInContainer.dat", new HashMap<String, String>());
View Full Code Here

      client.deleteObject(containerName, "foo/inContainer.dat");
      client.deleteObject(containerName, "foo");
      assertTrue(client.deleteContainer(containerName));
     
      // Make sure it's gone
      assertFalse(client.containerExists(containerName));
     
    } catch (Exception e) {
      fail(e.getMessage());
    }
  }
View Full Code Here

    try {
      assertTrue(client.login());
      String containerName = createTempContainerName("pathTest");
     
      // Make sure it's not there
      assertFalse(client.containerExists(containerName));
     
      // Add it
      client.createContainer(containerName);
     
      // See that it's there
View Full Code Here

     
      // Add it
      client.createContainer(containerName);
     
      // See that it's there
      assertTrue(client.containerExists(containerName));
     
      // Add a path and two files
      client.createFullPath(containerName, "foo/bar/baz");
     
      List<FilesObject> allObjects = client.listObjects(containerName);
View Full Code Here

      client.deleteObject(containerName, "foo/bar");
      client.deleteObject(containerName, "foo");
      assertTrue(client.deleteContainer(containerName));
     
      // Make sure it's gone
      assertFalse(client.containerExists(containerName));
     
    } catch (Exception e) {
      e.printStackTrace();
      fail(e.getMessage());
    }
View Full Code Here

    try {
      assertTrue(client.login());
      String containerName = createTempContainerName("FOpathTest");
     
      // Make sure it's not there
      assertFalse(client.containerExists(containerName));
     
      // Add it
      client.createContainer(containerName);
     
      // See that it's there
View Full Code Here

     
      // Add it
      client.createContainer(containerName);
     
      // See that it's there
      assertTrue(client.containerExists(containerName));
     
      // Add a path and two files
      client.createPath(containerName, "test");
     
      List<FilesObject> allObjects = client.listObjects(containerName);
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.