org.jclouds.blobstore.domain.internal
Class BlobImpl
java.lang.Object
org.jclouds.http.internal.PayloadEnclosingImpl
org.jclouds.blobstore.domain.internal.BlobImpl
- All Implemented Interfaces:
- Comparable<Blob>, Blob, PayloadEnclosing
public class BlobImpl
- extends PayloadEnclosingImpl
- implements Blob, Comparable<Blob>
Value type for an HTTP Blob service. Blobs are stored in containers
and consist
of a value
, a {@link Blob#getKey key and
- Author:
- Adrian Cole
Nested classes/interfaces inherited from interface org.jclouds.blobstore.domain.Blob |
Blob.Factory |
BlobImpl
@Inject
public BlobImpl(MutableBlobMetadata metadata)
getMetadata
public MutableBlobMetadata getMetadata()
-
- Specified by:
getMetadata
in interface Blob
- Returns:
- System and User metadata relevant to this object.
getAllHeaders
public com.google.common.collect.Multimap<String,String> getAllHeaders()
-
- Specified by:
getAllHeaders
in interface Blob
- Returns:
- headers returned from the services
setAllHeaders
public void setAllHeaders(com.google.common.collect.Multimap<String,String> allHeaders)
-
- Specified by:
setAllHeaders
in interface Blob
- See Also:
Blob.getAllHeaders()
compareTo
public int compareTo(Blob o)
-
- Specified by:
compareTo
in interface Comparable<Blob>
hashCode
public int hashCode()
- Overrides:
hashCode
in class PayloadEnclosingImpl
equals
public boolean equals(Object obj)
- Overrides:
equals
in class PayloadEnclosingImpl
toString
public String toString()
- Overrides:
toString
in class Object
setPayload
public void setPayload(Payload data)
- Description copied from class:
PayloadEnclosingImpl
- Sets payload for the request or the content from the response. If size isn't set, this will
attempt to discover it.
- Specified by:
setPayload
in interface PayloadEnclosing
- Overrides:
setPayload
in class PayloadEnclosingImpl
- Parameters:
data
- typically InputStream for downloads, or File, byte [], String, or InputStream for
uploads.
Copyright © 2009-2011 jclouds. All Rights Reserved.