org.jclouds.blobstore.domain.internal
Class BlobMetadataImpl

java.lang.Object
  extended by org.jclouds.domain.internal.ResourceMetadataImpl<StorageType>
      extended by org.jclouds.blobstore.domain.internal.StorageMetadataImpl
          extended by org.jclouds.blobstore.domain.internal.BlobMetadataImpl
All Implemented Interfaces:
Serializable, Comparable<ResourceMetadata<StorageType>>, BlobMetadata, StorageMetadata, ResourceMetadata<StorageType>

public class BlobMetadataImpl
extends StorageMetadataImpl
implements Serializable, BlobMetadata

System and user Metadata for the Blob.

Author:
Adrian Cole
See Also:
Serialized Form

Constructor Summary
BlobMetadataImpl(String id, String name, Location location, URI uri, String eTag, Date lastModified, Map<String,String> userMetadata, URI publicUri, String container, ContentMetadata contentMetadata)
           
 
Method Summary
 String getContainer()
          
 ContentMetadata getContentMetadata()
          
 URI getPublicUri()
          If the blob is publicly readable, what is the URI one can access it at.
 
Methods inherited from class org.jclouds.blobstore.domain.internal.StorageMetadataImpl
equals, getETag, getLastModified, getType, hashCode
 
Methods inherited from class org.jclouds.domain.internal.ResourceMetadataImpl
compareTo, getLocation, getName, getProviderId, getUri, getUserMetadata, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jclouds.blobstore.domain.StorageMetadata
getETag, getLastModified, getName, getProviderId, getType, getUri, getUserMetadata
 
Methods inherited from interface org.jclouds.domain.ResourceMetadata
getLocation
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

BlobMetadataImpl

public BlobMetadataImpl(String id,
                        String name,
                        @Nullable
                        Location location,
                        URI uri,
                        String eTag,
                        Date lastModified,
                        Map<String,String> userMetadata,
                        @Nullable
                        URI publicUri,
                        @Nullable
                        String container,
                        ContentMetadata contentMetadata)
Method Detail

getPublicUri

public URI getPublicUri()
If the blob is publicly readable, what is the URI one can access it at.

Specified by:
getPublicUri in interface BlobMetadata
Returns:
uri, or null, if not readable

getContainer

public String getContainer()

Specified by:
getContainer in interface BlobMetadata
Returns:
the container holding this blob

getContentMetadata

public ContentMetadata getContentMetadata()

Specified by:
getContentMetadata in interface BlobMetadata


Copyright © 2009-2011 jclouds. All Rights Reserved.