Package org.jclouds.s3.domain.internal
Class S3ObjectImpl
- java.lang.Object
-
- org.jclouds.http.internal.PayloadEnclosingImpl
-
- org.jclouds.s3.domain.internal.S3ObjectImpl
-
- All Implemented Interfaces:
Comparable<S3Object>
,PayloadEnclosing
,S3Object
public class S3ObjectImpl extends PayloadEnclosingImpl implements S3Object, Comparable<S3Object>
Default Implementation ofS3Object
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jclouds.s3.domain.S3Object
S3Object.Factory
-
-
Field Summary
-
Fields inherited from class org.jclouds.http.internal.PayloadEnclosingImpl
payload
-
-
Constructor Summary
Constructors Constructor Description S3ObjectImpl(MutableObjectMetadata metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(S3Object o)
boolean
equals(Object obj)
AccessControlList
getAccessControlList()
com.google.common.collect.Multimap<String,String>
getAllHeaders()
MutableObjectMetadata
getMetadata()
int
hashCode()
void
setAccessControlList(AccessControlList acl)
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
-
S3ObjectImpl
@Inject public S3ObjectImpl(MutableObjectMetadata metadata)
-
-
Method Detail
-
setAccessControlList
public void setAccessControlList(AccessControlList acl)
- Specified by:
setAccessControlList
in interfaceS3Object
-
getAccessControlList
public AccessControlList getAccessControlList()
- Specified by:
getAccessControlList
in interfaceS3Object
-
getMetadata
public MutableObjectMetadata getMetadata()
- Specified by:
getMetadata
in interfaceS3Object
- Returns:
- System and User metadata relevant to this object.
-
getAllHeaders
public com.google.common.collect.Multimap<String,String> getAllHeaders()
- Specified by:
getAllHeaders
in interfaceS3Object
-
setAllHeaders
public void setAllHeaders(com.google.common.collect.Multimap<String,String> allHeaders)
- Specified by:
setAllHeaders
in interfaceS3Object
-
compareTo
public int compareTo(S3Object o)
- Specified by:
compareTo
in interfaceComparable<S3Object>
-
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.
-
-