Package com.adaptris.aws.s3
Class ObjectOperationImpl
- java.lang.Object
-
- com.adaptris.aws.s3.S3OperationImpl
-
- com.adaptris.aws.s3.ObjectOperationImpl
-
- All Implemented Interfaces:
S3Operation
,ComponentLifecycleExtension
- Direct Known Subclasses:
CheckFileExistsOperation
,CopyOperationImpl
,DeleteOperation
,TagOperation
,TransferOperation
public abstract class ObjectOperationImpl extends S3OperationImpl
Operation on a single S3 Object.This was introduced to demarcate operations that do work on the bucket as a whole as opposed to a single S3 Object in the bucket.
- Since:
- 3.10.2
-
-
Field Summary
-
Fields inherited from class com.adaptris.aws.s3.S3OperationImpl
log
-
-
Constructor Summary
Constructors Constructor Description ObjectOperationImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getObjectName()
The Object in S3 that this operation will target.void
prepare()
protected java.lang.String
s3ObjectKey(AdaptrisMessage msg)
Get the key representing the S3 Object.void
setObjectName(java.lang.String objectName)
The Object in S3 that this operation will target.<T extends ObjectOperationImpl>
TwithObjectName(java.lang.String b)
-
Methods inherited from class com.adaptris.aws.s3.S3OperationImpl
getBucket, resolve, s3Bucket, setBucket, withBucket
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adaptris.aws.s3.S3Operation
execute
-
-
-
-
Method Detail
-
prepare
public void prepare() throws CoreException
- Specified by:
prepare
in interfaceComponentLifecycleExtension
- Overrides:
prepare
in classS3OperationImpl
- Throws:
CoreException
-
withObjectName
public <T extends ObjectOperationImpl> T withObjectName(java.lang.String b)
-
s3ObjectKey
protected java.lang.String s3ObjectKey(AdaptrisMessage msg)
Get the key representing the S3 Object.
-
getObjectName
public java.lang.String getObjectName()
The Object in S3 that this operation will target.Generally this is the full key to the object in the bucket.
-
setObjectName
public void setObjectName(java.lang.String objectName)
The Object in S3 that this operation will target.Generally this is the full key to the object in the bucket.
-
-