Class SftpStreamingInboundChannelAdapterSpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<SftpStreamingInboundChannelAdapterSpec, SftpStreamingMessageSource>
org.springframework.integration.dsl.MessageSourceSpec<SftpStreamingInboundChannelAdapterSpec, SftpStreamingMessageSource>
org.springframework.integration.file.dsl.RemoteFileStreamingInboundChannelAdapterSpec<org.apache.sshd.sftp.client.SftpClient.DirEntry, SftpStreamingInboundChannelAdapterSpec, SftpStreamingMessageSource>
org.springframework.integration.sftp.dsl.SftpStreamingInboundChannelAdapterSpec
- All Implemented Interfaces:
DisposableBean, FactoryBean<SftpStreamingMessageSource>, InitializingBean, Lifecycle, Phased, SmartLifecycle, ComponentsRegistration
public class SftpStreamingInboundChannelAdapterSpec
extends RemoteFileStreamingInboundChannelAdapterSpec<org.apache.sshd.sftp.client.SftpClient.DirEntry, SftpStreamingInboundChannelAdapterSpec, SftpStreamingMessageSource>
- Since:
- 5.0
- Author:
- Gary Russell
-
Field Summary
Fields inherited from class IntegrationComponentSpec
logger, PARSER, targetFields inherited from interface FactoryBean
OBJECT_TYPE_ATTRIBUTEFields inherited from interface SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSftpStreamingInboundChannelAdapterSpec(RemoteFileTemplate<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileTemplate, @Nullable Comparator<org.apache.sshd.sftp.client.SftpClient.DirEntry> 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 RemoteFileStreamingInboundChannelAdapterSpec
filter, filterExpression, filterFunction, getComponentsToRegister, maxFetchSize, remoteDirectory, remoteDirectory, remoteDirectory, remoteFileSeparatorMethods inherited from class MessageSourceSpec
messageHeadersMethods inherited from class IntegrationComponentSpec
_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FactoryBean
isSingletonMethods inherited from interface SmartLifecycle
isPauseable
-
Constructor Details
-
SftpStreamingInboundChannelAdapterSpec
protected SftpStreamingInboundChannelAdapterSpec(RemoteFileTemplate<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileTemplate, @Nullable Comparator<org.apache.sshd.sftp.client.SftpClient.DirEntry> comparator)
-
-
Method Details
-
patternFilter
Specify a simple pattern to match remote files (e.g. '*.txt').- Specified by:
patternFilterin classRemoteFileStreamingInboundChannelAdapterSpec<org.apache.sshd.sftp.client.SftpClient.DirEntry, SftpStreamingInboundChannelAdapterSpec, SftpStreamingMessageSource>- 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:
regexFilterin classRemoteFileStreamingInboundChannelAdapterSpec<org.apache.sshd.sftp.client.SftpClient.DirEntry, SftpStreamingInboundChannelAdapterSpec, SftpStreamingMessageSource>- Parameters:
regex- the expression.- Returns:
- the spec.
- See Also:
-