Examples of BlobPropertiesImpl


Examples of org.jclouds.azureblob.domain.internal.BlobPropertiesImpl

      } else if (qName.equals("BlobType")) {
         currentBlobType = BlobType.fromValue(currentText.toString().trim());
      } else if (qName.equals("LeaseStatus")) {
         currentLeaseStatus = LeaseStatus.fromValue(currentText.toString().trim());
      } else if (qName.equals("Blob")) {
         BlobProperties md = new BlobPropertiesImpl(currentBlobType, currentName, containerUrl.getPath().replace("/",
                  ""), currentUrl, currentLastModified, currentETag, currentSize, currentContentType,
                  currentContentMD5, currentContentEncoding, currentContentLanguage, currentExpires,
                  currentLeaseStatus, currentMetadata);
         blobMetadata.add(md);
         currentBlobType = null;
View Full Code Here

Examples of org.jclouds.azureblob.domain.internal.BlobPropertiesImpl

   }

   public void testApplyInputStream() {
      InputStream is = getClass().getResourceAsStream("/test_list_blobs.xml");
      Set<BlobProperties> contents = ImmutableSet.<BlobProperties> of(
            new BlobPropertiesImpl(BlobType.BLOCK_BLOB, "blob1.txt", "mycontainer", URI
                  .create("http://myaccount.blob.core.windows.net/mycontainer/blob1.txt"), dateService
                  .rfc822DateParse("Thu, 18 Sep 2008 18:41:57 GMT"), "0x8CAE7D55D050B8B", 8,
                  "text/plain; charset=UTF-8", null, null, null, null, LeaseStatus.UNLOCKED, ImmutableMap
                        .<String, String> of()),
            new BlobPropertiesImpl(BlobType.BLOCK_BLOB, "blob2.txt", "mycontainer", URI
                  .create("http://myaccount.blob.core.windows.net/mycontainer/blob2.txt"), dateService
                  .rfc822DateParse("Thu, 18 Sep 2008 18:41:57 GMT"), "0x8CAE7D55CF6C339", 14,
                  "text/plain; charset=UTF-8", null, null, null, null, LeaseStatus.UNLOCKED, ImmutableMap
                        .<String, String> of()),
            new BlobPropertiesImpl(BlobType.PAGE_BLOB, "newblob1.txt", "mycontainer", URI
                  .create("http://myaccount.blob.core.windows.net/mycontainer/newblob1.txt"), dateService
                  .rfc822DateParse("Thu, 18 Sep 2008 18:41:57 GMT"), "0x8CAE7D55CF6C339", 25,
                  "text/plain; charset=UTF-8", null, null, null, null, LeaseStatus.UNLOCKED, ImmutableMap
                        .<String, String> of()));
View Full Code Here

Examples of org.jclouds.azureblob.domain.internal.BlobPropertiesImpl

      assertEquals(result, list);
   }

   public void testOptions() {
      InputStream is = getClass().getResourceAsStream("/test_list_blobs_options.xml");
      Set<BlobProperties> contents = ImmutableSet.<BlobProperties> of(new BlobPropertiesImpl(BlobType.BLOCK_BLOB, "a",
            "adriancole-blobstore3", URI.create("https://jclouds.blob.core.windows.net/adriancole-blobstore3/a"),
            dateService.rfc822DateParse("Sat, 30 Jan 2010 17:46:15 GMT"), "0x8CC6FEB41736428", 8,
            "application/octet-stream", null, null, null, null, LeaseStatus.UNLOCKED, ImmutableMap.<String, String> of()));

      ListBlobsResponse list = new HashSetListBlobsResponse(contents,
View Full Code Here

Examples of org.jclouds.azureblob.domain.internal.BlobPropertiesImpl

   }

   public void testApplyInputStream() {
      InputStream is = getClass().getResourceAsStream("/test_list_blobs.xml");
      Set<BlobProperties> contents = ImmutableSet.<BlobProperties> of(
            new BlobPropertiesImpl(BlobType.BLOCK_BLOB, "blob1.txt", "mycontainer", URI
                  .create("http://myaccount.blob.core.windows.net/mycontainer/blob1.txt"), dateService
                  .rfc822DateParse("Thu, 18 Sep 2008 18:41:57 GMT"), "0x8CAE7D55D050B8B", 8,
                  "text/plain; charset=UTF-8", null, null, null, null, LeaseStatus.UNLOCKED, ImmutableMap
                        .<String, String> of()),
            new BlobPropertiesImpl(BlobType.BLOCK_BLOB, "blob2.txt", "mycontainer", URI
                  .create("http://myaccount.blob.core.windows.net/mycontainer/blob2.txt"), dateService
                  .rfc822DateParse("Thu, 18 Sep 2008 18:41:57 GMT"), "0x8CAE7D55CF6C339", 14,
                  "text/plain; charset=UTF-8", null, null, null, null, LeaseStatus.UNLOCKED, ImmutableMap
                        .<String, String> of()),
            new BlobPropertiesImpl(BlobType.PAGE_BLOB, "newblob1.txt", "mycontainer", URI
                  .create("http://myaccount.blob.core.windows.net/mycontainer/newblob1.txt"), dateService
                  .rfc822DateParse("Thu, 18 Sep 2008 18:41:57 GMT"), "0x8CAE7D55CF6C339", 25,
                  "text/plain; charset=UTF-8", null, null, null, null, LeaseStatus.UNLOCKED, ImmutableMap
                        .<String, String> of()));
View Full Code Here

Examples of org.jclouds.azureblob.domain.internal.BlobPropertiesImpl

      assertEquals(result, list);
   }

   public void testOptions() {
      InputStream is = getClass().getResourceAsStream("/test_list_blobs_options.xml");
      Set<BlobProperties> contents = ImmutableSet.<BlobProperties> of(new BlobPropertiesImpl(BlobType.BLOCK_BLOB, "a",
            "adriancole-blobstore3", URI.create("https://jclouds.blob.core.windows.net/adriancole-blobstore3/a"),
            dateService.rfc822DateParse("Sat, 30 Jan 2010 17:46:15 GMT"), "0x8CC6FEB41736428", 8,
            "application/octet-stream", null, null, null, null, LeaseStatus.UNLOCKED, ImmutableMap.<String, String> of()));

      ListBlobsResponse list = new HashSetListBlobsResponse(contents,
View Full Code Here

Examples of org.jclouds.azureblob.domain.internal.BlobPropertiesImpl

      } else if (qName.equals("BlobType")) {
         currentBlobType = BlobType.fromValue(currentText.toString().trim());
      } else if (qName.equals("LeaseStatus")) {
         currentLeaseStatus = LeaseStatus.fromValue(currentText.toString().trim());
      } else if (qName.equals("Blob")) {
         BlobProperties md = new BlobPropertiesImpl(currentBlobType, currentName, containerUrl.getPath().replace("/",
                  ""), currentUrl, currentLastModified, currentETag, currentSize, currentContentType,
                  currentContentMD5, currentContentEncoding, currentContentLanguage, currentExpires,
                  currentLeaseStatus, currentMetadata);
         blobMetadata.add(md);
         currentBlobType = null;
View Full Code Here

Examples of org.jclouds.azureblob.domain.internal.BlobPropertiesImpl

      } else if (qName.equals("BlobType")) {
         currentBlobType = BlobType.fromValue(currentText.toString().trim());
      } else if (qName.equals("LeaseStatus")) {
         currentLeaseStatus = LeaseStatus.fromValue(currentText.toString().trim());
      } else if (qName.equals("Blob")) {
         BlobProperties md = new BlobPropertiesImpl(currentBlobType, currentName, containerUrl.getPath().replace("/",
                  ""), currentUrl, currentLastModified, currentETag, currentSize, currentContentType,
                  currentContentMD5, currentContentEncoding, currentContentLanguage, currentExpires,
                  currentLeaseStatus, currentMetadata);
         blobMetadata.add(md);
         currentBlobType = null;
View Full Code Here

Examples of org.jclouds.azureblob.domain.internal.BlobPropertiesImpl

   }

   public void testApplyInputStream() {
      InputStream is = getClass().getResourceAsStream("/test_list_blobs.xml");
      Set<BlobProperties> contents = ImmutableSet.<BlobProperties> of(
            new BlobPropertiesImpl(BlobType.BLOCK_BLOB, "blob1.txt", "mycontainer", URI
                  .create("http://myaccount.blob.core.windows.net/mycontainer/blob1.txt"), dateService
                  .rfc822DateParse("Thu, 18 Sep 2008 18:41:57 GMT"), "0x8CAE7D55D050B8B", 8,
                  "text/plain; charset=UTF-8", null, null, null, null, LeaseStatus.UNLOCKED, ImmutableMap
                        .<String, String> of()),
            new BlobPropertiesImpl(BlobType.BLOCK_BLOB, "blob2.txt", "mycontainer", URI
                  .create("http://myaccount.blob.core.windows.net/mycontainer/blob2.txt"), dateService
                  .rfc822DateParse("Thu, 18 Sep 2008 18:41:57 GMT"), "0x8CAE7D55CF6C339", 14,
                  "text/plain; charset=UTF-8", null, null, null, null, LeaseStatus.UNLOCKED, ImmutableMap
                        .<String, String> of()),
            new BlobPropertiesImpl(BlobType.PAGE_BLOB, "newblob1.txt", "mycontainer", URI
                  .create("http://myaccount.blob.core.windows.net/mycontainer/newblob1.txt"), dateService
                  .rfc822DateParse("Thu, 18 Sep 2008 18:41:57 GMT"), "0x8CAE7D55CF6C339", 25,
                  "text/plain; charset=UTF-8", null, null, null, null, LeaseStatus.UNLOCKED, ImmutableMap
                        .<String, String> of()));
View Full Code Here

Examples of org.jclouds.azureblob.domain.internal.BlobPropertiesImpl

      assertEquals(result, list);
   }

   public void testOptions() {
      InputStream is = getClass().getResourceAsStream("/test_list_blobs_options.xml");
      Set<BlobProperties> contents = ImmutableSet.<BlobProperties> of(new BlobPropertiesImpl(BlobType.BLOCK_BLOB, "a",
            "adriancole-blobstore3", URI.create("https://jclouds.blob.core.windows.net/adriancole-blobstore3/a"),
            dateService.rfc822DateParse("Sat, 30 Jan 2010 17:46:15 GMT"), "0x8CC6FEB41736428", 8,
            "application/octet-stream", null, null, null, null, LeaseStatus.UNLOCKED, ImmutableMap.<String, String> of()));

      ListBlobsResponse list = new HashSetListBlobsResponse(contents,
View Full Code Here

Examples of org.jclouds.azureblob.domain.internal.BlobPropertiesImpl

      } else if (qName.equals("BlobType")) {
         currentBlobType = BlobType.fromValue(currentText.toString().trim());
      } else if (qName.equals("LeaseStatus")) {
         currentLeaseStatus = LeaseStatus.fromValue(currentText.toString().trim());
      } else if (qName.equals("Blob")) {
         BlobProperties md = new BlobPropertiesImpl(currentBlobType, currentName, containerUrl.getPath().replace("/",
                  ""), currentUrl, currentLastModified, currentETag, currentSize, currentContentType,
                  currentContentMD5, currentContentEncoding, currentContentLanguage, currentExpires,
                  currentLeaseStatus, currentMetadata);
         blobMetadata.add(md);
         currentBlobType = 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.