Class AzureBlobImpl
- java.lang.Object
-
- org.jclouds.http.internal.PayloadEnclosingImpl
-
- org.jclouds.azureblob.domain.internal.AzureBlobImpl
-
- All Implemented Interfaces:
Comparable<AzureBlob>,AzureBlob,PayloadEnclosing
public class AzureBlobImpl extends PayloadEnclosingImpl implements AzureBlob, Comparable<AzureBlob>
Default Implementation ofAzureBlob.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jclouds.azureblob.domain.AzureBlob
AzureBlob.Factory
-
-
Field Summary
-
Fields inherited from class org.jclouds.http.internal.PayloadEnclosingImpl
payload
-
-
Constructor Summary
Constructors Constructor Description AzureBlobImpl(MutableBlobProperties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(AzureBlob o)booleanequals(Object obj)com.google.common.collect.Multimap<String,String>getAllHeaders()MutableBlobPropertiesgetProperties()inthashCode()voidsetAllHeaders(com.google.common.collect.Multimap<String,String> allHeaders)voidsetPayload(Payload data)Sets payload for the request or the content from the response.StringtoString()-
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
-
AzureBlobImpl
@Inject public AzureBlobImpl(MutableBlobProperties properties)
-
-
Method Detail
-
getProperties
public MutableBlobProperties getProperties()
- Specified by:
getPropertiesin interfaceAzureBlob- Returns:
- System and User metadata relevant to this object.
-
getAllHeaders
public com.google.common.collect.Multimap<String,String> getAllHeaders()
- Specified by:
getAllHeadersin interfaceAzureBlob
-
setAllHeaders
public void setAllHeaders(com.google.common.collect.Multimap<String,String> allHeaders)
- Specified by:
setAllHeadersin interfaceAzureBlob
-
compareTo
public int compareTo(AzureBlob o)
- Specified by:
compareToin interfaceComparable<AzureBlob>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classPayloadEnclosingImpl
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classPayloadEnclosingImpl
-
setPayload
public void setPayload(Payload data)
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.
-
-