java.lang.Object | |
↳ | org.mule.module.s3.model.S3Object |
Represents an object stored in Amazon S3. This object contains the data content and the object metadata stored by Amazon S3, such as content type, content length, etc.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
bucketName | The name of the bucket in which this object is contained | ||||||||||
isRequesterCharged | Indicates if the requester is charged for downloading the data from Requester Pays Buckets. | ||||||||||
key | The key under which this object is stored | ||||||||||
metadata | The metadata stored by Amazon S3 for this object | ||||||||||
objectContent | The stream containing the contents of this object from S3 | ||||||||||
redirectLocation | The redirect location for this object |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Releases any underlying system resources.
| |||||||||||
Gets the name of the bucket in which this object is contained.
| |||||||||||
Gets the key under which this object is stored.
| |||||||||||
Gets the input stream containing the contents of this object.
| |||||||||||
Gets the metadata stored by Amazon S3 for this object.
| |||||||||||
Gets the redirect location for this object.
| |||||||||||
Returns true if the user is charged for downloading the object from an Requester Pays Bucket; else false.
| |||||||||||
Sets the name of the bucket in which this object is contained.
| |||||||||||
Sets the key under which this object is stored.
| |||||||||||
Sets the input stream containing this object's contents.
| |||||||||||
Sets the object metadata for this object.
| |||||||||||
Sets the redirect location for this object.
| |||||||||||
Used for downloading an Amazon S3 Object from a Requester Pays Bucket.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
The name of the bucket in which this object is contained
Indicates if the requester is charged for downloading the data from Requester Pays Buckets.
The key under which this object is stored
The stream containing the contents of this object from S3
The redirect location for this object
Releases any underlying system resources. If the resources are already released then invoking this method has no effect.
IOException | if an I/O error occurs |
---|
Gets the name of the bucket in which this object is contained.
Gets the key under which this object is stored.
Gets the input stream containing the contents of this object.
Note: The method is a simple getter and does not actually create a stream. If you retrieve an S3Object, you should close this input stream as soon as possible, because the object contents aren't buffered in memory and stream directly from Amazon S3. Further, failure to close this stream can cause the request pool to become blocked.
Gets the metadata stored by Amazon S3 for this object. The S3ObjectMetadata
object includes any custom user metadata supplied by the caller when the object was
uploaded, as well as HTTP metadata such as content length and content type.
Gets the redirect location for this object.
Returns true if the user is charged for downloading the object from an Requester Pays Bucket; else false.
If a bucket is enabled for Requester Pays, then any attempt to read an object from it without Requester Pays enabled will result in a 403 error and the bucket owner will be charged for the request.Sets the name of the bucket in which this object is contained.
bucketName | The name of the bucket containing this object. |
---|
Sets the key under which this object is stored.
key | The key under which this object is stored. |
---|
Sets the input stream containing this object's contents.
objectContent | The input stream containing this object's contents. |
---|
Sets the object metadata for this object.
NOTE: This does not update the object metadata stored in Amazon S3, but only updates this object in local memory. To update an object's metadata in S3, usecopyObject(String, String, String, String, String, CannedAccessControlList, StorageClass, Map, Date, Date, String)
to copy the object
to a new (or the same location) and specify new object metadata then.metadata | The new metadata to set for this object in memory. |
---|
Sets the redirect location for this object.
redirectLocation | The redirect location for that object. |
---|
Used for downloading an Amazon S3 Object from a Requester Pays Bucket. If set the requester is charged for downloading the data from the bucket.
If a bucket is enabled for Requester Pays, then any attempt to read an object from it without Requester Pays enabled will result in a 403 error and the bucket owner will be charged for the request.isRequesterCharged | Indicates requester is charged for this operation. |
---|