Class ObjectOperationImpl

java.lang.Object
com.adaptris.aws2.s3.S3OperationImpl
com.adaptris.aws2.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:
4.3.0
  • Constructor Details

    • ObjectOperationImpl

      public ObjectOperationImpl()
  • Method Details

    • prepare

      public void prepare() throws CoreException
      Specified by:
      prepare in interface ComponentLifecycleExtension
      Overrides:
      prepare in class S3OperationImpl
      Throws:
      CoreException
    • withObjectName

      public <T extends ObjectOperationImpl> T withObjectName(String b)
    • s3ObjectKey

      protected String s3ObjectKey(AdaptrisMessage msg)
      Get the key representing the S3 Object.
    • getObjectName

      public 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(String objectName)
      The Object in S3 that this operation will target.

      Generally this is the full key to the object in the bucket.