Package com.adaptris.aws2.s3
Class UploadOperation
java.lang.Object
com.adaptris.aws2.s3.S3OperationImpl
com.adaptris.aws2.s3.ObjectOperationImpl
com.adaptris.aws2.s3.TransferOperation
com.adaptris.aws2.s3.UploadOperation
- All Implemented Interfaces:
S3Operation,ComponentLifecycleExtension
@ComponentProfile(summary="Amazon S3 Upload using Transfer Manager",
since="4.3.0")
public class UploadOperation
extends TransferOperation
Upload an object to S3.
- Since:
- 4.3.0
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.aws2.s3.S3OperationImpl
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(ClientWrapper wrapper, AdaptrisMessage msg) Sets the optional access control list for the new object.voidsetCannedObjectAcl(String cannedObjectAcl) voidsetObjectAcl(S3ObjectAcl objectAcl) Sets the optional access control list for the new object.voidsetObjectMetadata(List<S3ObjectMetadata> objectMetadata) withCannedObjectAcl(String objectAcl) withObjectAcl(S3ObjectAcl objectAcl) withObjectMetadata(S3ObjectMetadata... objectMetadata) withObjectMetadata(List<S3ObjectMetadata> objectMetadata) Methods inherited from class com.adaptris.aws2.s3.TransferOperation
filterMetadata, filterUserMetadata, getUserMetadataFilter, setUserMetadataFilter, withUserMetadataFilterMethods inherited from class com.adaptris.aws2.s3.ObjectOperationImpl
getObjectName, prepare, s3ObjectKey, setObjectName, withObjectNameMethods inherited from class com.adaptris.aws2.s3.S3OperationImpl
getBucket, s3Bucket, setBucket, withBucket
-
Constructor Details
-
UploadOperation
public UploadOperation()
-
-
Method Details
-
execute
- Throws:
Exception
-
withObjectMetadata
-
withObjectMetadata
-
withCannedObjectAcl
-
withObjectAcl
-
getObjectMetadata
-
setObjectMetadata
-
getCannedObjectAcl
-
setCannedObjectAcl
-
getObjectAcl
Sets the optional access control list for the new object. If specified, cannedObjectAcl will be ignored. -
setObjectAcl
Sets the optional access control list for the new object. If specified, cannedObjectAcl will be ignored.
-