Package com.adaptris.aws.s3
Class DownloadOperation
- java.lang.Object
-
- com.adaptris.aws.s3.S3OperationImpl
-
- com.adaptris.aws.s3.ObjectOperationImpl
-
- com.adaptris.aws.s3.TransferOperation
-
- com.adaptris.aws.s3.DownloadOperation
-
- All Implemented Interfaces:
S3Operation,ComponentLifecycleExtension
@ComponentProfile(summary="Amazon S3 Download using Transfer Manager") public class DownloadOperation extends TransferOperation
Download an object from S3 usingTransferManager.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.aws.s3.S3OperationImpl
log
-
-
Constructor Summary
Constructors Constructor Description DownloadOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(ClientWrapper wrapper, AdaptrisMessage msg)java.lang.StringgetTempDirectory()voidsetTempDirectory(java.lang.String s)Set the temp directory to store files.DownloadOperationwithTempDirectory(java.lang.String s)-
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
-
getTempDirectory
public java.lang.String getTempDirectory()
- Returns:
- the tempDirectory
-
setTempDirectory
public void setTempDirectory(java.lang.String s)
Set the temp directory to store files.- Parameters:
s- the tempDirectory to set, if not specified defaults tojava.io.tmpdir
-
withTempDirectory
public DownloadOperation withTempDirectory(java.lang.String s)
-
-