Package org.jclouds.io.payloads

Examples of org.jclouds.io.payloads.BaseMutableContentMetadata


                        return new StorageMetadataImpl(type, from.getObjectID(), from.getObjectName(), defaultLocation
                                 .get(), null, null, null, null, ImmutableMap.<String,String>of());
                     else
                        return new BlobMetadataImpl(from.getObjectID(), from.getObjectName(), defaultLocation.get(),
                                 null, null, null, null, ImmutableMap.<String,String>of(), null,
                                 null, new BaseMutableContentMetadata());
                  }

               }), from.getToken());

   }
View Full Code Here


   private URI publicUri;
   private String container;

   public MutableBlobMetadataImpl() {
      this.setType(StorageType.BLOB);
      this.contentMetadata = new BaseMutableContentMetadata();
   }
View Full Code Here

      this.contentMetadata = new BaseMutableContentMetadata();
   }

   public MutableBlobMetadataImpl(BlobMetadata from) {
      super(from);
      this.contentMetadata = new BaseMutableContentMetadata();
      HttpUtils.copy(from.getContentMetadata(), this.contentMetadata);
      this.publicUri = from.getPublicUri();
      this.container = from.getContainer();
   }
View Full Code Here

import com.google.common.collect.ImmutableMap;

public class ArchiveMetadataToBlobMetadata implements Function<ArchiveMetadata, MutableBlobMetadata> {
   @Override
   public MutableBlobMetadata apply(ArchiveMetadata from) {
      MutableContentMetadata contentMetadata = new BaseMutableContentMetadata();
      contentMetadata.setContentLength(from.getSize());

      MutableBlobMetadata to = new MutableBlobMetadataImpl();
      to.setName(from.getArchiveId());
      to.setCreationDate(from.getCreationDate());
      to.setUserMetadata(ImmutableMap.<String, String>of());
View Full Code Here

   private URI publicUri;
   private String container;

   public MutableBlobMetadataImpl() {
      this.setType(StorageType.BLOB);
      this.contentMetadata = new BaseMutableContentMetadata();
   }
View Full Code Here

      this.contentMetadata = new BaseMutableContentMetadata();
   }

   public MutableBlobMetadataImpl(BlobMetadata from) {
      super(from);
      this.contentMetadata = new BaseMutableContentMetadata();
      HttpUtils.copy(from.getContentMetadata(), this.contentMetadata);
      this.publicUri = from.getPublicUri();
      this.container = from.getContainer();
   }
View Full Code Here

      String blobName = "test-blob";
      long oneMB = 1048576L;
      AzureBlobClient client = createMock(AzureBlobClient.class);
      PayloadSlicer slicer = createMock(PayloadSlicer.class);
      MutableBlobMetadata metadata = new MutableBlobMetadataImpl();
      MutableContentMetadata contentMetadata = new BaseMutableContentMetadata();
      contentMetadata.setContentLength(MultipartUploadStrategy.MAX_BLOCK_SIZE * 3 + oneMB);
      metadata.setName(blobName);
      metadata.setContentMetadata(contentMetadata);
      Blob blob = new BlobImpl(metadata);
      Payload payload = new StringPayload("ABCD");
      payload.setContentMetadata(contentMetadata);
View Full Code Here

   private MutableContentMetadata contentMetadata;
   private Map<String, String> metadata = Maps.newHashMap();

   public MutableBlobPropertiesImpl() {
      super();
      this.contentMetadata = new BaseMutableContentMetadata();
   }
View Full Code Here

      super();
      this.contentMetadata = new BaseMutableContentMetadata();
   }

   public MutableBlobPropertiesImpl(BlobProperties from) {
      this.contentMetadata = new BaseMutableContentMetadata();
      this.name = from.getName();
      this.container = from.getContainer();
      this.url = from.getUrl();
      this.lastModified = from.getLastModified();
      this.eTag = from.getETag();
View Full Code Here

   private Map<String, String> userMetadata = Maps.newHashMap();
   private MutableContentMetadata contentMetadata;

   public MutableObjectMetadataImpl() {
      this.storageClass = StorageClass.STANDARD;
      this.contentMetadata = new BaseMutableContentMetadata();
   }
View Full Code Here

TOP

Related Classes of org.jclouds.io.payloads.BaseMutableContentMetadata

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.