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 of S3Object
.
- Author:
- Adrian Cole
S3ObjectImpl
@Inject
public S3ObjectImpl(MutableObjectMetadata metadata)
setAccessControlList
public void setAccessControlList(AccessControlList acl)
-
- Specified by:
setAccessControlList
in interface S3Object
getAccessControlList
public AccessControlList getAccessControlList()
-
- Specified by:
getAccessControlList
in interface S3Object
getMetadata
public MutableObjectMetadata getMetadata()
-
- Specified by:
getMetadata
in interface S3Object
- Returns:
- System and User metadata relevant to this object.
getAllHeaders
public com.google.common.collect.Multimap<String,String> getAllHeaders()
-
- Specified by:
getAllHeaders
in interface S3Object
setAllHeaders
public void setAllHeaders(com.google.common.collect.Multimap<String,String> allHeaders)
-
- Specified by:
setAllHeaders
in interface S3Object
compareTo
public int compareTo(S3Object o)
-
- Specified by:
compareTo
in interface Comparable<S3Object>
hashCode
public int hashCode()
- Overrides:
hashCode
in class PayloadEnclosingImpl
equals
public boolean equals(Object obj)
- Overrides:
equals
in class PayloadEnclosingImpl
toString
public String toString()
- Overrides:
toString
in class Object
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 interface PayloadEnclosing
- Overrides:
setPayload
in class PayloadEnclosingImpl
- Parameters:
data
- typically InputStream for downloads, or File, byte [], String, or InputStream for
uploads.
Copyright © 2009-2011 jclouds. All Rights Reserved.