public class BlobImpl extends PayloadEnclosingImpl implements Blob, Comparable<Blob>
containers
and consist
of a value
, a {@link Blob#getKey key andBlob.Factory
payload
Constructor and Description |
---|
BlobImpl(MutableBlobMetadata metadata) |
Modifier and Type | Method and 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() |
getPayload, setPayload, setPayload, setPayload, setPayload
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getPayload, setPayload, setPayload, setPayload, setPayload
@Inject public BlobImpl(MutableBlobMetadata metadata)
public MutableBlobMetadata getMetadata()
getMetadata
in interface Blob
public com.google.common.collect.Multimap<String,String> getAllHeaders()
getAllHeaders
in interface Blob
public void setAllHeaders(com.google.common.collect.Multimap<String,String> allHeaders)
setAllHeaders
in interface Blob
Blob.getAllHeaders()
public int compareTo(Blob o)
compareTo
in interface Comparable<Blob>
public int hashCode()
hashCode
in class PayloadEnclosingImpl
public boolean equals(Object obj)
equals
in class PayloadEnclosingImpl
public void setPayload(Payload data)
PayloadEnclosingImpl
setPayload
in interface PayloadEnclosing
setPayload
in class PayloadEnclosingImpl
data
- typically InputStream for downloads, or File, byte [], String, or InputStream for
uploads.Copyright © 2009-2012 jclouds. All Rights Reserved.