Package com.adaptris.aws.s3
Class ExtendedCopyOperation
java.lang.Object
com.adaptris.aws.s3.S3OperationImpl
com.adaptris.aws.s3.ObjectOperationImpl
com.adaptris.aws.s3.CopyOperationImpl
com.adaptris.aws.s3.ExtendedCopyOperation
- All Implemented Interfaces:
S3Operation
,ComponentLifecycleExtension
@ComponentProfile(summary="Copy an object in S3 to another Object",
since="3.10.2")
public class ExtendedCopyOperation
extends CopyOperationImpl
Copy an object from S3 to another object
By default this operation gets the existing ObjectMetadata and Tags associated with the S3
object, and ensures that they are applied to the underlying CopyObjectRequest
. You also
have the option to force various settings using the object-metadata
and
object-tags
members as required. If you're using the Amazon S3 API against a different
provider then your mileage may vary since object-tags
and object-metadata
might
not translate to alternate providers.
In the adapter configuration file this class is aliased as amazon-s3-extended-copy which is the preferred alternative to the fully qualified classname when building your configuration.
-
Field Summary
Fields inherited from class com.adaptris.aws.s3.S3OperationImpl
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected com.amazonaws.services.s3.model.CopyObjectRequest
createCopyRequest
(ClientWrapper wrapper, AdaptrisMessage msg) Any specific object metadata that you want to force on the destination object.Any specific object tags that you want to force on the destination object.void
prepare()
void
setObjectMetadata
(List<S3ObjectMetadata> objectMetadata) Any specific object metadata that you want to force on the destination object.void
setObjectTags
(KeyValuePairSet objectTags) Any specific object tags that you want to force on the destination object.withObjectMetadata
(S3ObjectMetadata... meta) withObjectTags
(KeyValuePair... tags) Methods inherited from class com.adaptris.aws.s3.CopyOperationImpl
execute, getDestinationBucket, getDestinationObjectName, setDestinationBucket, setDestinationObjectName, withDestinationBucket, withDestinationObjectName
Methods inherited from class com.adaptris.aws.s3.ObjectOperationImpl
getObjectName, s3ObjectKey, setObjectName, withObjectName
Methods inherited from class com.adaptris.aws.s3.S3OperationImpl
getBucket, resolve, s3Bucket, setBucket, withBucket
-
Constructor Details
-
ExtendedCopyOperation
public ExtendedCopyOperation()
-
-
Method Details
-
prepare
- Specified by:
prepare
in interfaceComponentLifecycleExtension
- Overrides:
prepare
in classObjectOperationImpl
- Throws:
CoreException
-
createCopyRequest
protected com.amazonaws.services.s3.model.CopyObjectRequest createCopyRequest(ClientWrapper wrapper, AdaptrisMessage msg) throws Exception - Specified by:
createCopyRequest
in classCopyOperationImpl
- Throws:
Exception
-
withObjectMetadata
-
withObjectMetadata
-
withObjectTags
-
withObjectTags
-
setObjectMetadata
Any specific object metadata that you want to force on the destination object. -
getObjectMetadata
Any specific object metadata that you want to force on the destination object. -
setObjectTags
Any specific object tags that you want to force on the destination object. -
getObjectTags
Any specific object tags that you want to force on the destination object.
-