Logo Search packages:      
Sourcecode: jets3t version File versions  Download package

abstract Map org::jets3t::service::S3Service::copyObjectImpl ( String  sourceBucketName,
String  sourceObjectKey,
String  destinationBucketName,
String  destinationObjectKey,
AccessControlList  acl,
Map  destinationMetadata,
Calendar  ifModifiedSince,
Calendar  ifUnmodifiedSince,
String[]  ifMatchTags,
String[]  ifNoneMatchTags,
String  versionId 
) throws S3ServiceException [protected, pure virtual]

Copy an object within your S3 account. Copies within a single bucket or between buckets, and optionally updates the object's metadata at the same time. An object can be copied over itself, allowing you to update the metadata without making any other changes.

sourceBucketName the name of the bucket that contains the original object.
sourceObjectKey the key name of the original object.
destinationBucketName the name of the destination bucket to which the object will be copied.
destinationObjectKey the key name for the copied object.
acl the access control settings that will be applied to the copied object. If this parameter is null, the default (private) ACL setting will be applied to the copied object.
destinationMetadata metadata items to apply to the copied object. If this parameter is null, the metadata will be copied unchanged from the original object. If this parameter is not null, the copied object will have only the supplied metadata.
a map of the header and result information returned by S3 after the object copy. The map includes the object's MD5 hash value (ETag), its size (Content-Length), and update timestamp (Last-Modified).

Implemented in org::jets3t::service::impl::rest::httpclient::RestS3Service, and org::jets3t::service::impl::soap::axis::SoapS3Service.

Referenced by copyObject(), and copyVersionedObject().

Generated by  Doxygen 1.6.0   Back to index