Class FtpStreamingInboundChannelAdapterSpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,H>
org.springframework.integration.dsl.MessageSourceSpec<S,MS>
org.springframework.integration.file.dsl.RemoteFileStreamingInboundChannelAdapterSpec<org.apache.commons.net.ftp.FTPFile,FtpStreamingInboundChannelAdapterSpec,FtpStreamingMessageSource>
org.springframework.integration.ftp.dsl.FtpStreamingInboundChannelAdapterSpec
- All Implemented Interfaces:
DisposableBean
,FactoryBean<FtpStreamingMessageSource>
,InitializingBean
,Lifecycle
,Phased
,SmartLifecycle
,ComponentsRegistration
public class FtpStreamingInboundChannelAdapterSpec
extends RemoteFileStreamingInboundChannelAdapterSpec<org.apache.commons.net.ftp.FTPFile,FtpStreamingInboundChannelAdapterSpec,FtpStreamingMessageSource>
- Since:
- 5.0
- Author:
- Gary Russell, Artem Bilan
-
Field Summary
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
logger, PARSER, target
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
ModifierConstructorDescriptionprotected
FtpStreamingInboundChannelAdapterSpec
(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate, Comparator<org.apache.commons.net.ftp.FTPFile> comparator) -
Method Summary
Modifier and TypeMethodDescriptionpatternFilter
(String pattern) Specify a simple pattern to match remote files (e.g.regexFilter
(String regex) Specify a regular expression to match remote files (e.g.Methods inherited from class org.springframework.integration.file.dsl.RemoteFileStreamingInboundChannelAdapterSpec
filter, filterExpression, filterFunction, getComponentsToRegister, maxFetchSize, remoteDirectory, remoteDirectory, remoteDirectory, remoteFileSeparator
Methods inherited from class org.springframework.integration.dsl.MessageSourceSpec
messageHeaders
Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, afterPropertiesSet, destroy, doGet, get, getId, getObject, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
-
Constructor Details
-
FtpStreamingInboundChannelAdapterSpec
protected FtpStreamingInboundChannelAdapterSpec(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate, @Nullable Comparator<org.apache.commons.net.ftp.FTPFile> comparator)
-
-
Method Details
-
patternFilter
Specify a simple pattern to match remote files (e.g. '*.txt').- Specified by:
patternFilter
in classRemoteFileStreamingInboundChannelAdapterSpec<org.apache.commons.net.ftp.FTPFile,
FtpStreamingInboundChannelAdapterSpec, FtpStreamingMessageSource> - Parameters:
pattern
- the pattern.- Returns:
- the spec.
- See Also:
-
regexFilter
Specify a regular expression to match remote files (e.g. '[0-9].*.txt').- Specified by:
regexFilter
in classRemoteFileStreamingInboundChannelAdapterSpec<org.apache.commons.net.ftp.FTPFile,
FtpStreamingInboundChannelAdapterSpec, FtpStreamingMessageSource> - Parameters:
regex
- the expression.- Returns:
- the spec.
- See Also:
-