public class S3InboundFileSynchronizer
extends org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<com.amazonaws.services.s3.model.S3ObjectSummary>
AbstractInboundFileSynchronizer for Amazon S3.| Constructor and Description |
|---|
S3InboundFileSynchronizer() |
S3InboundFileSynchronizer(com.amazonaws.services.s3.AmazonS3 amazonS3) |
S3InboundFileSynchronizer(org.springframework.integration.file.remote.session.SessionFactory<com.amazonaws.services.s3.model.S3ObjectSummary> sessionFactory)
Create a synchronizer with the
SessionFactory used to acquire Session instances. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
copyFileToLocalDirectory(java.lang.String remoteDirectoryPath,
com.amazonaws.services.s3.model.S3ObjectSummary remoteFile,
java.io.File localDirectory,
org.springframework.integration.file.remote.session.Session<com.amazonaws.services.s3.model.S3ObjectSummary> session) |
protected java.lang.String |
getFilename(com.amazonaws.services.s3.model.S3ObjectSummary file) |
protected long |
getModified(com.amazonaws.services.s3.model.S3ObjectSummary file) |
protected boolean |
isFile(com.amazonaws.services.s3.model.S3ObjectSummary file) |
void |
setFilter(org.springframework.integration.file.filters.FileListFilter<com.amazonaws.services.s3.model.S3ObjectSummary> filter) |
void |
setRemoteDirectoryExpression(org.springframework.expression.Expression remoteDirectoryExpression) |
afterPropertiesSet, close, doInit, doSetFilter, doSetRemoteDirectoryExpression, filterFiles, getTemporaryFileSuffix, rollbackFromFileToListEnd, setBeanFactory, setDeleteRemoteFiles, setLocalFilenameGeneratorExpression, setLocalFilenameGeneratorExpressionString, setPreserveTimestamp, setRemoteDirectory, setRemoteDirectoryExpressionString, setRemoteFileSeparator, setTemporaryFileSuffix, synchronizeToLocalDirectory, synchronizeToLocalDirectorypublic S3InboundFileSynchronizer()
public S3InboundFileSynchronizer(com.amazonaws.services.s3.AmazonS3 amazonS3)
public S3InboundFileSynchronizer(org.springframework.integration.file.remote.session.SessionFactory<com.amazonaws.services.s3.model.S3ObjectSummary> sessionFactory)
SessionFactory used to acquire Session instances.sessionFactory - The session factory.public final void setRemoteDirectoryExpression(org.springframework.expression.Expression remoteDirectoryExpression)
setRemoteDirectoryExpression in class org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<com.amazonaws.services.s3.model.S3ObjectSummary>public final void setFilter(org.springframework.integration.file.filters.FileListFilter<com.amazonaws.services.s3.model.S3ObjectSummary> filter)
setFilter in class org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<com.amazonaws.services.s3.model.S3ObjectSummary>protected boolean isFile(com.amazonaws.services.s3.model.S3ObjectSummary file)
isFile in class org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<com.amazonaws.services.s3.model.S3ObjectSummary>protected java.lang.String getFilename(com.amazonaws.services.s3.model.S3ObjectSummary file)
getFilename in class org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<com.amazonaws.services.s3.model.S3ObjectSummary>protected long getModified(com.amazonaws.services.s3.model.S3ObjectSummary file)
getModified in class org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<com.amazonaws.services.s3.model.S3ObjectSummary>protected boolean copyFileToLocalDirectory(java.lang.String remoteDirectoryPath,
com.amazonaws.services.s3.model.S3ObjectSummary remoteFile,
java.io.File localDirectory,
org.springframework.integration.file.remote.session.Session<com.amazonaws.services.s3.model.S3ObjectSummary> session)
throws java.io.IOException
copyFileToLocalDirectory in class org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<com.amazonaws.services.s3.model.S3ObjectSummary>java.io.IOException