Package com.adaptris.aws2.s3
Class DownloadOperation
java.lang.Object
com.adaptris.aws2.s3.S3OperationImpl
com.adaptris.aws2.s3.ObjectOperationImpl
com.adaptris.aws2.s3.TransferOperation
com.adaptris.aws2.s3.DownloadOperation
- All Implemented Interfaces:
S3Operation,ComponentLifecycleExtension
@ComponentProfile(summary="Amazon S3 Download using Transfer Manager",
since="4.3.0")
public class DownloadOperation
extends TransferOperation
Download an object from S3.
- Since:
- 4.3.0
In the adapter configuration file this class is aliased as amazon-s3-download 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) voidSet the temp directory to store files.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
-
DownloadOperation
public DownloadOperation()
-
-
Method Details
-
execute
- Throws:
Exception
-
getTempDirectory
- Returns:
- the tempDirectory
-
setTempDirectory
Set the temp directory to store files.- Parameters:
s- the tempDirectory to set, if not specified defaults tojava.io.tmpdir
-
withTempDirectory
-