F
- the target file type.S
- the target RemoteFileInboundChannelAdapterSpec
implementation type.MS
- the target AbstractInboundFileSynchronizingMessageSource
implementation type.public abstract class RemoteFileInboundChannelAdapterSpec<F,S extends RemoteFileInboundChannelAdapterSpec<F,S,MS>,MS extends org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizingMessageSource<F>> extends MessageSourceSpec<S,MS> implements ComponentsRegistration
MessageSourceSpec
for an AbstractInboundFileSynchronizingMessageSource
.Modifier and Type | Field and Description |
---|---|
protected org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<F> |
synchronizer |
logger, PARSER, target
Modifier | Constructor and Description |
---|---|
protected |
RemoteFileInboundChannelAdapterSpec(org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<F> synchronizer) |
Modifier and Type | Method and Description |
---|---|
S |
autoCreateLocalDirectory(boolean autoCreateLocalDirectory)
Configure whether the local directory should be created by the adapter.
|
S |
deleteRemoteFiles(boolean deleteRemoteFiles) |
S |
filter(org.springframework.integration.file.filters.FileListFilter<F> filter)
Configure a
FileListFilter to be applied to the remote files before
copying them. |
java.util.Collection<java.lang.Object> |
getComponentsToRegister() |
S |
localDirectory(java.io.File localDirectory)
Configure the local directory to copy files to.
|
S |
localFilename(Function<java.lang.String,java.lang.String> localFilenameFunction)
Configure a
Function to be invoked to generate the local file name;
argument passed to the apply method is the remote file name. |
S |
localFilenameExpression(org.springframework.expression.Expression localFilenameExpression)
Configure a SpEL expression to generate the local file name; the root object for
the evaluation is the remote file name.
|
S |
localFilenameExpression(java.lang.String localFilenameExpression)
Configure a SpEL expression to generate the local file name; the root object for
the evaluation is the remote file name.
|
S |
localFilter(org.springframework.integration.file.filters.FileListFilter<java.io.File> localFileListFilter) |
abstract S |
patternFilter(java.lang.String pattern)
Configure a simple pattern filter (e.g.
|
S |
preserveTimestamp(boolean preserveTimestamp) |
abstract S |
regexFilter(java.lang.String regex)
Configure a regex pattern filter (e.g.
|
S |
remoteDirectory(java.lang.String remoteDirectory) |
S |
remoteDirectoryExpression(org.springframework.expression.Expression remoteDirectoryExpression)
Specify an expression that evaluates to the full path to the remote directory.
|
S |
remoteFileSeparator(java.lang.String remoteFileSeparator)
Configure the file name path separator used by the remote system.
|
S |
temporaryFileSuffix(java.lang.String temporaryFileSuffix)
Configure a suffix to temporarily apply to the local filename; when copied the
file is renamed to its final name.
|
_this, doGet, get, getId, getObject, getObjectType, id, isSingleton
protected final org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<F> synchronizer
protected RemoteFileInboundChannelAdapterSpec(org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<F> synchronizer)
public S autoCreateLocalDirectory(boolean autoCreateLocalDirectory)
autoCreateLocalDirectory
- the autoCreateLocalDirectorypublic S localDirectory(java.io.File localDirectory)
localDirectory
- the localDirectory.public S localFilter(org.springframework.integration.file.filters.FileListFilter<java.io.File> localFileListFilter)
localFileListFilter
- the localFileListFilter.AbstractInboundFileSynchronizingMessageSource.setLocalFilter(FileListFilter)
public S remoteFileSeparator(java.lang.String remoteFileSeparator)
remoteFileSeparator
- the remoteFileSeparator.public S localFilenameExpression(java.lang.String localFilenameExpression)
localFilenameExpression
- the localFilenameExpression.public S localFilename(Function<java.lang.String,java.lang.String> localFilenameFunction)
Function
to be invoked to generate the local file name;
argument passed to the apply
method is the remote file name.localFilenameFunction
- the localFilenameFunction.FunctionExpression
public S localFilenameExpression(org.springframework.expression.Expression localFilenameExpression)
localFilenameExpression
- the localFilenameExpression.public S temporaryFileSuffix(java.lang.String temporaryFileSuffix)
temporaryFileSuffix
- the temporaryFileSuffix.public S remoteDirectory(java.lang.String remoteDirectory)
remoteDirectory
- the remoteDirectory.AbstractInboundFileSynchronizer.setRemoteDirectory(String)
public S remoteDirectoryExpression(org.springframework.expression.Expression remoteDirectoryExpression)
remoteDirectoryExpression
- The remote directory expression.public S filter(org.springframework.integration.file.filters.FileListFilter<F> filter)
FileListFilter
to be applied to the remote files before
copying them.filter
- the filter.public abstract S patternFilter(java.lang.String pattern)
pattern
- the pattern.filter(FileListFilter)
public abstract S regexFilter(java.lang.String regex)
regex
- the regex.filter(FileListFilter)
public S deleteRemoteFiles(boolean deleteRemoteFiles)
public S preserveTimestamp(boolean preserveTimestamp)
public java.util.Collection<java.lang.Object> getComponentsToRegister()
getComponentsToRegister
in interface ComponentsRegistration