Class BlobImpl
java.lang.Object
org.jclouds.http.internal.PayloadEnclosingImpl
org.jclouds.blobstore.domain.internal.BlobImpl
- All Implemented Interfaces:
Comparable<Blob>,Blob,PayloadEnclosing
Value type for an HTTP Blob service. Blobs are stored in
and consist
of a
, a
invalid reference
containers
invalid reference
value
invalid reference
key and
@link Blob.Metadata#getUserMetadata() metadata
-
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 -
Method Summary
Modifier and TypeMethodDescriptionintbooleaninthashCode()voidsetAllHeaders(com.google.common.collect.Multimap<String, String> allHeaders) voidsetPayload(Payload data) Sets payload for the request or the content from the response.toString()Methods inherited from class org.jclouds.http.internal.PayloadEnclosingImpl
getPayload, resetPayload, setPayload, setPayload, setPayload, setPayload, setPayloadMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jclouds.io.PayloadEnclosing
getPayload, resetPayload, setPayload, setPayload, setPayload, setPayload, setPayload
-
Constructor Details
-
BlobImpl
-
-
Method Details
-
getMetadata
- Specified by:
getMetadatain interfaceBlob- Returns:
- System and User metadata relevant to this object.
-
getAllHeaders
- Specified by:
getAllHeadersin interfaceBlob- Returns:
- headers returned from the services
-
setAllHeaders
- Specified by:
setAllHeadersin interfaceBlob- See Also:
-
compareTo
- Specified by:
compareToin interfaceComparable<Blob>
-
hashCode
public int hashCode()- Overrides:
hashCodein classPayloadEnclosingImpl
-
equals
- Overrides:
equalsin classPayloadEnclosingImpl
-
toString
-
setPayload
Description copied from class:PayloadEnclosingImplSets payload for the request or the content from the response. If size isn't set, this will attempt to discover it.- Specified by:
setPayloadin interfacePayloadEnclosing- Overrides:
setPayloadin classPayloadEnclosingImpl- Parameters:
data- typically InputStream for downloads, or File, byte[], String, InputStream, of ByteSource for uploads.
-