Package com.adaptris.aws.s3
Class CopyOperation
java.lang.Object
com.adaptris.aws.s3.S3OperationImpl
com.adaptris.aws.s3.ObjectOperationImpl
com.adaptris.aws.s3.CopyOperationImpl
com.adaptris.aws.s3.CopyOperation
- All Implemented Interfaces:
S3Operation,ComponentLifecycleExtension
@ComponentProfile(summary="Copy an object in S3 to another Object")
public class CopyOperation
extends CopyOperationImpl
Copy an object from S3 to another object
Effectively uses AmazonS3Client.copyObject(String, String, String, String) using only the
default behaviour. Note that by default the server-side-encryption, storage-class and
website-redirect-location are not copied to the destination object. If you need those
settings then you should probably think about using ExtendedCopyOperation instead.
In the adapter configuration file this class is aliased as amazon-s3-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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.amazonaws.services.s3.model.CopyObjectRequestcreateCopyRequest(ClientWrapper wrapper, AdaptrisMessage msg) voidprepare()Methods inherited from class com.adaptris.aws.s3.CopyOperationImpl
execute, getDestinationBucket, getDestinationObjectName, setDestinationBucket, setDestinationObjectName, withDestinationBucket, withDestinationObjectNameMethods inherited from class com.adaptris.aws.s3.ObjectOperationImpl
getObjectName, s3ObjectKey, setObjectName, withObjectNameMethods inherited from class com.adaptris.aws.s3.S3OperationImpl
getBucket, resolve, s3Bucket, setBucket, withBucket
-
Constructor Details
-
CopyOperation
public CopyOperation()
-
-
Method Details
-
prepare
- Specified by:
preparein interfaceComponentLifecycleExtension- Overrides:
preparein classObjectOperationImpl- Throws:
CoreException
-
createCopyRequest
protected com.amazonaws.services.s3.model.CopyObjectRequest createCopyRequest(ClientWrapper wrapper, AdaptrisMessage msg) throws Exception - Specified by:
createCopyRequestin classCopyOperationImpl- Throws:
Exception
-