Package com.adaptris.aws.s3
Class UploadOperation
- java.lang.Object
-
- com.adaptris.aws.s3.S3OperationImpl
-
- com.adaptris.aws.s3.ObjectOperationImpl
-
- com.adaptris.aws.s3.TransferOperation
-
- com.adaptris.aws.s3.UploadOperation
-
- All Implemented Interfaces:
S3Operation
,ComponentLifecycleExtension
@ComponentProfile(summary="Amazon S3 Upload using Transfer Manager") public class UploadOperation extends TransferOperation
Upload an object to S3 usingTransferManager
.In the adapter configuration file this class is aliased as amazon-s3-upload 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 UploadOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(ClientWrapper wrapper, AdaptrisMessage msg)
java.lang.String
getCannedObjectAcl()
S3ObjectAcl
getObjectAcl()
Sets the optional access control list for the new object.java.util.List<S3ObjectMetadata>
getObjectMetadata()
void
setCannedObjectAcl(java.lang.String cannedObjectAcl)
void
setObjectAcl(S3ObjectAcl objectAcl)
Sets the optional access control list for the new object.void
setObjectMetadata(java.util.List<S3ObjectMetadata> objectMetadata)
UploadOperation
withCannedObjectAcl(java.lang.String objectAcl)
UploadOperation
withObjectAcl(S3ObjectAcl objectAcl)
UploadOperation
withObjectMetadata(S3ObjectMetadata... objectMetadata)
UploadOperation
withObjectMetadata(java.util.List<S3ObjectMetadata> objectMetadata)
-
Methods inherited from class com.adaptris.aws.s3.TransferOperation
filterMetadata, filterUserMetadata, getUserMetadataFilter, setUserMetadataFilter, withUserMetadataFilter
-
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
-
withObjectMetadata
public UploadOperation withObjectMetadata(java.util.List<S3ObjectMetadata> objectMetadata)
-
withObjectMetadata
public UploadOperation withObjectMetadata(S3ObjectMetadata... objectMetadata)
-
withCannedObjectAcl
public UploadOperation withCannedObjectAcl(java.lang.String objectAcl)
-
withObjectAcl
public UploadOperation withObjectAcl(S3ObjectAcl objectAcl)
-
getObjectMetadata
public java.util.List<S3ObjectMetadata> getObjectMetadata()
-
setObjectMetadata
public void setObjectMetadata(java.util.List<S3ObjectMetadata> objectMetadata)
-
getCannedObjectAcl
public java.lang.String getCannedObjectAcl()
-
setCannedObjectAcl
public void setCannedObjectAcl(java.lang.String cannedObjectAcl)
-
getObjectAcl
public S3ObjectAcl getObjectAcl()
Sets the optional access control list for the new object. If specified, cannedObjectAcl will be ignored.
-
setObjectAcl
public void setObjectAcl(S3ObjectAcl objectAcl)
Sets the optional access control list for the new object. If specified, cannedObjectAcl will be ignored.
-
-