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 incontainers
and consist of avalue
, akey and
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jclouds.blobstore.domain.Blob
Blob.Factory
-
-
Field Summary
-
Fields inherited from class org.jclouds.http.internal.PayloadEnclosingImpl
payload
-
-
Constructor Summary
Constructors Constructor Description BlobImpl(MutableBlobMetadata metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Blob o)
boolean
equals(Object obj)
com.google.common.collect.Multimap<String,String>
getAllHeaders()
MutableBlobMetadata
getMetadata()
int
hashCode()
void
setAllHeaders(com.google.common.collect.Multimap<String,String> allHeaders)
void
setPayload(Payload data)
Sets payload for the request or the content from the response.String
toString()
-
Methods inherited from class org.jclouds.http.internal.PayloadEnclosingImpl
getPayload, resetPayload, setPayload, setPayload, setPayload, setPayload, setPayload
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jclouds.io.PayloadEnclosing
getPayload, resetPayload, setPayload, setPayload, setPayload, setPayload, setPayload
-
-
-
-
Constructor Detail
-
BlobImpl
@Inject public BlobImpl(MutableBlobMetadata metadata)
-
-
Method Detail
-
getMetadata
public MutableBlobMetadata getMetadata()
- Specified by:
getMetadata
in interfaceBlob
- Returns:
- System and User metadata relevant to this object.
-
getAllHeaders
public com.google.common.collect.Multimap<String,String> getAllHeaders()
- Specified by:
getAllHeaders
in interfaceBlob
- Returns:
- headers returned from the services
-
setAllHeaders
public void setAllHeaders(com.google.common.collect.Multimap<String,String> allHeaders)
- Specified by:
setAllHeaders
in interfaceBlob
- See Also:
Blob.getAllHeaders()
-
compareTo
public int compareTo(Blob o)
- Specified by:
compareTo
in interfaceComparable<Blob>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classPayloadEnclosingImpl
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classPayloadEnclosingImpl
-
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 interfacePayloadEnclosing
- Overrides:
setPayload
in classPayloadEnclosingImpl
- Parameters:
data
- typically InputStream for downloads, or File, byte[], String, InputStream, of ByteSource for uploads.
-
-