Package com.adaptris.aws.s3
Class CopyOperationImpl
- java.lang.Object
-
- com.adaptris.aws.s3.S3OperationImpl
-
- com.adaptris.aws.s3.ObjectOperationImpl
-
- com.adaptris.aws.s3.CopyOperationImpl
-
- All Implemented Interfaces:
S3Operation
,ComponentLifecycleExtension
- Direct Known Subclasses:
CopyOperation
,ExtendedCopyOperation
public abstract class CopyOperationImpl extends ObjectOperationImpl
Copy an object from S3 to another object
-
-
Field Summary
-
Fields inherited from class com.adaptris.aws.s3.S3OperationImpl
log
-
-
Constructor Summary
Constructors Constructor Description CopyOperationImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract com.amazonaws.services.s3.model.CopyObjectRequest
createCopyRequest(ClientWrapper wrapper, AdaptrisMessage msg)
void
execute(ClientWrapper wrapper, AdaptrisMessage msg)
java.lang.String
getDestinationBucket()
The destination bucket.java.lang.String
getDestinationObjectName()
The destination object.void
setDestinationBucket(java.lang.String destinationBucket)
The destination bucket.void
setDestinationObjectName(java.lang.String destinationObjectName)
The destination object.<T extends CopyOperationImpl>
TwithDestinationBucket(java.lang.String s)
<T extends CopyOperationImpl>
TwithDestinationObjectName(java.lang.String s)
-
Methods inherited from class com.adaptris.aws.s3.ObjectOperationImpl
getObjectName, prepare, s3ObjectKey, setObjectName, withObjectName
-
Methods inherited from class com.adaptris.aws.s3.S3OperationImpl
getBucket, resolve, s3Bucket, setBucket, withBucket
-
-
-
-
Method Detail
-
execute
public void execute(ClientWrapper wrapper, AdaptrisMessage msg) throws java.lang.Exception
- Throws:
java.lang.Exception
-
createCopyRequest
protected abstract com.amazonaws.services.s3.model.CopyObjectRequest createCopyRequest(ClientWrapper wrapper, AdaptrisMessage msg) throws java.lang.Exception
- Throws:
java.lang.Exception
-
withDestinationBucket
public <T extends CopyOperationImpl> T withDestinationBucket(java.lang.String s)
-
withDestinationObjectName
public <T extends CopyOperationImpl> T withDestinationObjectName(java.lang.String s)
-
getDestinationBucket
public java.lang.String getDestinationBucket()
The destination bucket.If not explictly configured, then we use the bucket name instead making the assumption it's a copy within the same bucket.
-
setDestinationBucket
public void setDestinationBucket(java.lang.String destinationBucket)
The destination bucket.If not explictly configured, then we use the bucket name instead making the assumption it's a copy within the same bucket.
-
getDestinationObjectName
public java.lang.String getDestinationObjectName()
The destination object.
-
setDestinationObjectName
public void setDestinationObjectName(java.lang.String destinationObjectName)
The destination object.
-
-