org.jclouds.blobstore.domain.internal
Class StorageMetadataImpl

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

public class StorageMetadataImpl
extends ResourceMetadataImpl<StorageType>
implements StorageMetadata, Serializable

Idpayload of the object

Author:
Adrian Cole
See Also:
Serialized Form

Constructor Summary
StorageMetadataImpl(StorageType type, String id, String name, Location location, URI uri, String eTag, Date lastModified, Map<String,String> userMetadata)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getETag()
          The eTag value stored in the Etag header returned by HTTP.
 Date getLastModified()
          Last modification time of the resource
 StorageType getType()
          Whether this resource is a container, file, etc.
 int 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
getName, getProviderId, getUri, getUserMetadata
 
Methods inherited from interface org.jclouds.domain.ResourceMetadata
getLocation
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

StorageMetadataImpl

public StorageMetadataImpl(StorageType type,
                           @Nullable
                           String id,
                           @Nullable
                           String name,
                           @Nullable
                           Location location,
                           @Nullable
                           URI uri,
                           @Nullable
                           String eTag,
                           @Nullable
                           Date lastModified,
                           Map<String,String> userMetadata)
Method Detail

getType

public StorageType getType()
Whether this resource is a container, file, etc.

Specified by:
getType in interface StorageMetadata
Specified by:
getType in interface ResourceMetadata<StorageType>

hashCode

public int hashCode()
Overrides:
hashCode in class ResourceMetadataImpl<StorageType>

equals

public boolean equals(Object obj)
Overrides:
equals in class ResourceMetadataImpl<StorageType>

getETag

public String getETag()
The eTag value stored in the Etag header returned by HTTP.

Specified by:
getETag in interface StorageMetadata
See Also:
org.jclouds.blobstore.attr.ContainerCapability#CONTAINER_ETAG, org.jclouds.blobstore.attr.ContainerCapability#BLOB_ETAG

getLastModified

public Date getLastModified()
Last modification time of the resource

Specified by:
getLastModified in interface StorageMetadata
See Also:
org.jclouds.blobstore.attr.ContainerCapability#CONTAINER_LAST_MODIFIED, org.jclouds.blobstore.attr.ContainerCapability#BLOB_LAST_MODIFIED, ContainerCapability.MILLISECOND_PRECISION


Copyright © 2009-2011 jclouds. All Rights Reserved.