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 objectEffectively uses
AmazonS3Client.copyObject(String, String, String, String)using only the default behaviour. Note that by default theserver-side-encryption, storage-classandwebsite-redirect-locationare not copied to the destination object. If you need those settings then you should probably think about usingExtendedCopyOperationinstead.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 Constructor Description CopyOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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, 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
-
-
-
-
Method Detail
-
prepare
public void prepare() throws CoreException- Specified by:
preparein interfaceComponentLifecycleExtension- Overrides:
preparein classObjectOperationImpl- Throws:
CoreException
-
createCopyRequest
protected com.amazonaws.services.s3.model.CopyObjectRequest createCopyRequest(ClientWrapper wrapper, AdaptrisMessage msg) throws java.lang.Exception
- Specified by:
createCopyRequestin classCopyOperationImpl- Throws:
java.lang.Exception
-
-