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-class
andwebsite-redirect-location
are not copied to the destination object. If you need those settings then you should probably think about usingExtendedCopyOperation
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 Constructor Description CopyOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.amazonaws.services.s3.model.CopyObjectRequest
createCopyRequest(ClientWrapper wrapper, AdaptrisMessage msg)
void
prepare()
-
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:
prepare
in interfaceComponentLifecycleExtension
- Overrides:
prepare
in classObjectOperationImpl
- Throws:
CoreException
-
createCopyRequest
protected com.amazonaws.services.s3.model.CopyObjectRequest createCopyRequest(ClientWrapper wrapper, AdaptrisMessage msg) throws java.lang.Exception
- Specified by:
createCopyRequest
in classCopyOperationImpl
- Throws:
java.lang.Exception
-
-