Class FtpStreamingMessageSource
java.lang.Object
org.springframework.integration.util.AbstractExpressionEvaluator
org.springframework.integration.endpoint.AbstractMessageSource<InputStream>
org.springframework.integration.endpoint.AbstractFetchLimitingMessageSource<InputStream>
org.springframework.integration.file.remote.AbstractRemoteFileStreamingMessageSource<org.apache.commons.net.ftp.FTPFile>
org.springframework.integration.ftp.inbound.FtpStreamingMessageSource
- All Implemented Interfaces:
- Aware,- BeanFactoryAware,- BeanNameAware,- DisposableBean,- InitializingBean,- Lifecycle,- MessageSource<InputStream>,- IntegrationPattern,- NamedComponent,- IntegrationInboundManagement,- IntegrationManagement,- ManageableLifecycle,- MessageSourceManagement
public class FtpStreamingMessageSource
extends AbstractRemoteFileStreamingMessageSource<org.apache.commons.net.ftp.FTPFile>
Message source for streaming FTP remote file contents.
- Since:
- 4.3
- Author:
- Gary Russell, Artem Bilan
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.springframework.integration.support.management.IntegrationManagementIntegrationManagement.ManagementOverrides
- 
Field SummaryFields inherited from class org.springframework.integration.util.AbstractExpressionEvaluatorEXPRESSION_PARSER, loggerFields inherited from interface org.springframework.integration.support.management.IntegrationManagementMETER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
- 
Constructor SummaryConstructorsConstructorDescriptionFtpStreamingMessageSource(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> template) Construct an instance with the supplied template.FtpStreamingMessageSource(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> template, Comparator<org.apache.commons.net.ftp.FTPFile> comparator) Construct an instance with the supplied template and comparator.
- 
Method SummaryModifier and TypeMethodDescriptionprotected List<AbstractFileInfo<org.apache.commons.net.ftp.FTPFile>> asFileInfoList(Collection<org.apache.commons.net.ftp.FTPFile> files) protected booleanisDirectory(org.apache.commons.net.ftp.FTPFile file) Methods inherited from class org.springframework.integration.file.remote.AbstractRemoteFileStreamingMessageSourceclearFetchedCache, doInit, doReceive, doSetFilter, getRemoteFileTemplate, isRunning, onInit, poll, remotePath, rollbackFromFileToListEnd, setFileInfoJson, setFilter, setRemoteDirectory, setRemoteDirectoryExpression, setRemoteFileSeparator, setStrictOrder, start, stopMethods inherited from class org.springframework.integration.endpoint.AbstractFetchLimitingMessageSourcedoReceive, getMaxFetchSize, setMaxFetchSizeMethods inherited from class org.springframework.integration.endpoint.AbstractMessageSourcebuildMessage, destroy, getBeanName, getComponentName, getManagedName, getManagedType, getOverrides, isLoggingEnabled, receive, registerMetricsCaptor, setBeanName, setHeaderExpressions, setLoggingEnabled, setManagedName, setManagedTypeMethods inherited from class org.springframework.integration.util.AbstractExpressionEvaluatorafterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, setBeanFactory, setConversionService, setSimpleEvaluationContextMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.integration.support.management.IntegrationManagementgetThisAs, isObserved, registerObservationRegistryMethods inherited from interface org.springframework.integration.core.MessageSourcegetIntegrationPatternType
- 
Constructor Details- 
FtpStreamingMessageSourceConstruct an instance with the supplied template.- Parameters:
- template- the template.
 
- 
FtpStreamingMessageSourcepublic FtpStreamingMessageSource(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> template, Comparator<org.apache.commons.net.ftp.FTPFile> comparator) Construct an instance with the supplied template and comparator. Note: the comparator is applied each time the remote directory is listed which only occurs when the previous list is exhausted.- Parameters:
- template- the template.
- comparator- the comparator.
 
 
- 
- 
Method Details- 
getComponentType
- 
asFileInfoListprotected List<AbstractFileInfo<org.apache.commons.net.ftp.FTPFile>> asFileInfoList(Collection<org.apache.commons.net.ftp.FTPFile> files) - Specified by:
- asFileInfoListin class- AbstractRemoteFileStreamingMessageSource<org.apache.commons.net.ftp.FTPFile>
 
- 
isDirectoryprotected boolean isDirectory(org.apache.commons.net.ftp.FTPFile file) - Specified by:
- isDirectoryin class- AbstractRemoteFileStreamingMessageSource<org.apache.commons.net.ftp.FTPFile>
 
 
-