Package org.jclouds.azureblob.domain.internal

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


   }

   public void testApplyInputStream() {
      InputStream is = getClass().getResourceAsStream("/test_list_containers.xml");
      SortedSet<ContainerProperties> contents = Sets.newTreeSet();
      contents.add(new ContainerPropertiesImpl(URI
               .create("http://myaccount.blob.core.windows.net/audio"), dateService
               .rfc822DateParse("Wed, 13 Aug 2008 20:39:39 GMT"), "0x8CACB9BD7C6B1B2", Maps
               .<String, String> newHashMap()));
      contents.add(new ContainerPropertiesImpl(URI
               .create("http://myaccount.blob.core.windows.net/images"), dateService
               .rfc822DateParse("Wed, 14 Aug 2008 20:39:39 GMT"), "0x8CACB9BD7C1EEEC", Maps
               .<String, String> newHashMap()));
      contents.add(new ContainerPropertiesImpl(URI
               .create("http://myaccount.blob.core.windows.net/textfiles"), dateService
               .rfc822DateParse("Wed, 15 Aug 2008 20:39:39 GMT"), "0x8CACB9BD7BACAC3", Maps
               .<String, String> newHashMap()));
      BoundedSet<ContainerProperties> list = new BoundedHashSet<ContainerProperties>(contents, URI
               .create("http://myaccount.blob.core.windows.net/"), null, null, 3, "video");
View Full Code Here


      assertEquals(result, list);
   }

   public void testApplyInputStreamWithOptions() {
      SortedSet<ContainerProperties> contents = Sets.newTreeSet();
      contents.add(new ContainerPropertiesImpl(URI
               .create("http://myaccount.blob.core.windows.net/audio"), dateService
               .rfc822DateParse("Wed, 13 Aug 2008 20:39:39 GMT"), "0x8CACB9BD7C6B1B2", Maps
               .<String, String> newHashMap()));
      contents.add(new ContainerPropertiesImpl(URI
               .create("http://myaccount.blob.core.windows.net/images"), dateService
               .rfc822DateParse("Wed, 14 Aug 2008 20:39:39 GMT"), "0x8CACB9BD7C1EEEC", Maps
               .<String, String> newHashMap()));
      contents.add(new ContainerPropertiesImpl(URI
               .create("http://myaccount.blob.core.windows.net/textfiles"), dateService
               .rfc822DateParse("Wed, 15 Aug 2008 20:39:39 GMT"), "0x8CACB9BD7BACAC3", Maps
               .<String, String> newHashMap()));
      InputStream is = getClass().getResourceAsStream("/test_list_containers_options.xml");
      BoundedSet<ContainerProperties> list = new BoundedHashSet<ContainerProperties>(contents, URI
View Full Code Here

         prefix = (prefix.equals("")) ? null : prefix;
      } else if (qName.equals("NextMarker")) {
         nextMarker = currentText.toString().trim();
         nextMarker = (nextMarker.equals("")) ? null : nextMarker;
      } else if (qName.equals("Container")) {
         containerMetadata.add(new ContainerPropertiesImpl(currentUrl, currentLastModified,
                  currentETag, currentMetadata));
         currentUrl = null;
         currentLastModified = null;
         currentETag = null;
         currentMetadata = Maps.newHashMap();
View Full Code Here

   }

   public void testApplyInputStream() {
      InputStream is = getClass().getResourceAsStream("/test_list_containers.xml");
      SortedSet<ContainerProperties> contents = Sets.newTreeSet();
      contents.add(new ContainerPropertiesImpl(URI
               .create("http://myaccount.blob.core.windows.net/audio"), dateService
               .rfc822DateParse("Wed, 13 Aug 2008 20:39:39 GMT"), "0x8CACB9BD7C6B1B2", Maps
               .<String, String> newHashMap()));
      contents.add(new ContainerPropertiesImpl(URI
               .create("http://myaccount.blob.core.windows.net/images"), dateService
               .rfc822DateParse("Wed, 14 Aug 2008 20:39:39 GMT"), "0x8CACB9BD7C1EEEC", Maps
               .<String, String> newHashMap()));
      contents.add(new ContainerPropertiesImpl(URI
               .create("http://myaccount.blob.core.windows.net/textfiles"), dateService
               .rfc822DateParse("Wed, 15 Aug 2008 20:39:39 GMT"), "0x8CACB9BD7BACAC3", Maps
               .<String, String> newHashMap()));
      BoundedSet<ContainerProperties> list = new BoundedHashSet<ContainerProperties>(contents, URI
               .create("http://myaccount.blob.core.windows.net/"), null, null, 3, "video");
View Full Code Here

      assertEquals(result, list);
   }

   public void testApplyInputStreamWithOptions() {
      SortedSet<ContainerProperties> contents = Sets.newTreeSet();
      contents.add(new ContainerPropertiesImpl(URI
               .create("http://myaccount.blob.core.windows.net/audio"), dateService
               .rfc822DateParse("Wed, 13 Aug 2008 20:39:39 GMT"), "0x8CACB9BD7C6B1B2", Maps
               .<String, String> newHashMap()));
      contents.add(new ContainerPropertiesImpl(URI
               .create("http://myaccount.blob.core.windows.net/images"), dateService
               .rfc822DateParse("Wed, 14 Aug 2008 20:39:39 GMT"), "0x8CACB9BD7C1EEEC", Maps
               .<String, String> newHashMap()));
      contents.add(new ContainerPropertiesImpl(URI
               .create("http://myaccount.blob.core.windows.net/textfiles"), dateService
               .rfc822DateParse("Wed, 15 Aug 2008 20:39:39 GMT"), "0x8CACB9BD7BACAC3", Maps
               .<String, String> newHashMap()));
      InputStream is = getClass().getResourceAsStream("/test_list_containers_options.xml");
      BoundedSet<ContainerProperties> list = new BoundedHashSet<ContainerProperties>(contents, URI
View Full Code Here

         prefix = (prefix.equals("")) ? null : prefix;
      } else if (qName.equals("NextMarker")) {
         nextMarker = currentText.toString().trim();
         nextMarker = (nextMarker.equals("")) ? null : nextMarker;
      } else if (qName.equals("Container")) {
         containerMetadata.add(new ContainerPropertiesImpl(currentUrl, currentLastModified,
                  currentETag, currentMetadata));
         currentUrl = null;
         currentLastModified = null;
         currentETag = null;
         currentMetadata = Maps.newHashMap();
View Full Code Here

         prefix = (prefix.equals("")) ? null : prefix;
      } else if (qName.equals("NextMarker")) {
         nextMarker = currentText.toString().trim();
         nextMarker = (nextMarker.equals("")) ? null : nextMarker;
      } else if (qName.equals("Container")) {
         containerMetadata.add(new ContainerPropertiesImpl(currentUrl, currentLastModified,
                  currentETag, currentMetadata));
         currentUrl = null;
         currentLastModified = null;
         currentETag = null;
         currentMetadata = Maps.newHashMap();
View Full Code Here

   }

   public void testApplyInputStream() {
      InputStream is = getClass().getResourceAsStream("/test_list_containers.xml");
      SortedSet<ContainerProperties> contents = Sets.newTreeSet();
      contents.add(new ContainerPropertiesImpl(URI
               .create("http://myaccount.blob.core.windows.net/audio"), dateService
               .rfc822DateParse("Wed, 13 Aug 2008 20:39:39 GMT"), "0x8CACB9BD7C6B1B2", Maps
               .<String, String> newHashMap()));
      contents.add(new ContainerPropertiesImpl(URI
               .create("http://myaccount.blob.core.windows.net/images"), dateService
               .rfc822DateParse("Wed, 14 Aug 2008 20:39:39 GMT"), "0x8CACB9BD7C1EEEC", Maps
               .<String, String> newHashMap()));
      contents.add(new ContainerPropertiesImpl(URI
               .create("http://myaccount.blob.core.windows.net/textfiles"), dateService
               .rfc822DateParse("Wed, 15 Aug 2008 20:39:39 GMT"), "0x8CACB9BD7BACAC3", Maps
               .<String, String> newHashMap()));
      BoundedSet<ContainerProperties> list = new BoundedHashSet<ContainerProperties>(contents, URI
               .create("http://myaccount.blob.core.windows.net/"), null, null, 3, "video");
View Full Code Here

      assertEquals(result, list);
   }

   public void testApplyInputStreamWithOptions() {
      SortedSet<ContainerProperties> contents = Sets.newTreeSet();
      contents.add(new ContainerPropertiesImpl(URI
               .create("http://myaccount.blob.core.windows.net/audio"), dateService
               .rfc822DateParse("Wed, 13 Aug 2008 20:39:39 GMT"), "0x8CACB9BD7C6B1B2", Maps
               .<String, String> newHashMap()));
      contents.add(new ContainerPropertiesImpl(URI
               .create("http://myaccount.blob.core.windows.net/images"), dateService
               .rfc822DateParse("Wed, 14 Aug 2008 20:39:39 GMT"), "0x8CACB9BD7C1EEEC", Maps
               .<String, String> newHashMap()));
      contents.add(new ContainerPropertiesImpl(URI
               .create("http://myaccount.blob.core.windows.net/textfiles"), dateService
               .rfc822DateParse("Wed, 15 Aug 2008 20:39:39 GMT"), "0x8CACB9BD7BACAC3", Maps
               .<String, String> newHashMap()));
      InputStream is = getClass().getResourceAsStream("/test_list_containers_options.xml");
      BoundedSet<ContainerProperties> list = new BoundedHashSet<ContainerProperties>(contents, URI
View Full Code Here

         prefix = (prefix.equals("")) ? null : prefix;
      } else if (qName.equals("NextMarker")) {
         nextMarker = currentText.toString().trim();
         nextMarker = (nextMarker.equals("")) ? null : nextMarker;
      } else if (qName.equals("Container")) {
         containerMetadata.add(new ContainerPropertiesImpl(currentUrl, currentLastModified,
                  currentETag, currentMetadata));
         currentUrl = null;
         currentLastModified = null;
         currentETag = null;
         currentMetadata = Maps.newHashMap();
View Full Code Here

TOP

Related Classes of org.jclouds.azureblob.domain.internal.ContainerPropertiesImpl

Copyright © 2018 www.massapicom. 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.