org.jclouds.s3.domain.internal
Class S3ObjectImpl

java.lang.Object
  extended by org.jclouds.http.internal.PayloadEnclosingImpl
      extended by 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

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
S3ObjectImpl(MutableObjectMetadata metadata)
           
 
Method Summary
 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, 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, setPayload, setPayload, setPayload, setPayload
 

Constructor Detail

S3ObjectImpl

@Inject
public S3ObjectImpl(MutableObjectMetadata metadata)
Method Detail

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.