Examples of storeObject()


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

      // Set up
      client.createContainer(containerName);
     
      // Store it
      logger.info("About to save: " + filename);
      assertTrue(client.storeObject(containerName, randomData, "application/octet-stream", filename, new HashMap<String,String>()));
       
      // Make sure it's there
      List<FilesObject> objects = client.listObjects(containerName);
      assertEquals(1, objects.size());
      FilesObject obj = objects.get(0);
View Full Code Here

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

     
      // 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
      List<FilesObject> objects = client.listObjects(containerName);
      assertEquals(1, objects.size());
      FilesObject obj = objects.get(0);
View Full Code Here

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

     
      // 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
      List<FilesObject> objects = client.listObjects(containerName);
      assertEquals(1, objects.size());
      FilesObject obj = objects.get(0);
View Full Code Here

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

      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>());
      client.storeObject(containerName, randomData, "application/octet-stream", "foo/inContainer.dat", new HashMap<String, String>());
     
      List<FilesObject> allObjects = client.listObjects(containerName);
      List<FilesObject> pathObjects = client.listObjects(containerName, "foo");
     
View Full Code Here

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

     
      // 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>());
      client.storeObject(containerName, randomData, "application/octet-stream", "foo/inContainer.dat", new HashMap<String, String>());
     
      List<FilesObject> allObjects = client.listObjects(containerName);
      List<FilesObject> pathObjects = client.listObjects(containerName, "foo");
     
      assertEquals(3, allObjects.size());
View Full Code Here

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

      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>());
      client.storeObject(containerName, randomData, "application/octet-stream", "foo/inContainer.dat", new HashMap<String, String>());
     
      List<FilesObject> allObjects = client.listObjects(containerName);
      List<FilesObject> pathObjects = client.listObjects(containerName, "foo");
     
View Full Code Here

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

     
      // 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>());
      client.storeObject(containerName, randomData, "application/octet-stream", "foo/inContainer.dat", new HashMap<String, String>());
     
      List<FilesObject> allObjects = client.listObjects(containerName);
      List<FilesObject> pathObjects = client.listObjects(containerName, "foo");
     
      assertEquals(3, allObjects.size());
View Full Code Here

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

      // 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
      List<FilesObject> objects = client.listObjects(containerName);
      assertEquals(1, objects.size());
      FilesObject obj = objects.get(0);
View Full Code Here

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

      // Set up
      client.createContainer(containerName);
     
      // Store it
      for (int i=0; i < 10; i++) {
        assertTrue(client.storeObject(containerName, randomData, "application/octet-stream", "testfile" + i + ".bogus", new HashMap<String,String>()));
      }
     
      // Make sure it's there
      List<FilesObject> objects = client.listObjects(containerName);
      assertEquals(10, objects.size());
View Full Code Here

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

      // Set up
      client.createContainer(containerName);
     
      // Store it
      for (int i=0; i < 10; i++) {
        assertTrue(client.storeObject(containerName, randomData, "application/octet-stream", "foo/testfile" + i + ".bogus", new HashMap<String,String>()));
        assertTrue(client.storeObject(containerName, randomData, "application/octet-stream", "bar/testfile" + i + ".bogus", new HashMap<String,String>()));
      }
     
      // Make sure it's there
      List<FilesObject> objects = 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.