Class FtpPersistentAcceptOnceFileListFilter

java.lang.Object
org.springframework.integration.file.filters.AbstractFileListFilter<F>
org.springframework.integration.file.filters.AbstractDirectoryAwareFileListFilter<F>
org.springframework.integration.file.filters.AbstractPersistentAcceptOnceFileListFilter<org.apache.commons.net.ftp.FTPFile>
org.springframework.integration.ftp.filters.FtpPersistentAcceptOnceFileListFilter
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable, org.springframework.integration.file.filters.FileListFilter<org.apache.commons.net.ftp.FTPFile>, org.springframework.integration.file.filters.ResettableFileListFilter<org.apache.commons.net.ftp.FTPFile>, org.springframework.integration.file.filters.ReversibleFileListFilter<org.apache.commons.net.ftp.FTPFile>

public class FtpPersistentAcceptOnceFileListFilter
extends org.springframework.integration.file.filters.AbstractPersistentAcceptOnceFileListFilter<org.apache.commons.net.ftp.FTPFile>
Persistent file list filter using the server's file timestamp to detect if we've already 'seen' this file.
Since:
3.0
  • Field Summary

    Fields inherited from class org.springframework.integration.file.filters.AbstractPersistentAcceptOnceFileListFilter

    flushableStore, flushOnUpdate, prefix, store
  • Constructor Summary

    Constructors 
    Constructor Description
    FtpPersistentAcceptOnceFileListFilter​(org.springframework.integration.metadata.ConcurrentMetadataStore store, java.lang.String prefix)  
  • Method Summary

    Modifier and Type Method Description
    protected java.lang.String fileName​(org.apache.commons.net.ftp.FTPFile file)  
    protected boolean isDirectory​(org.apache.commons.net.ftp.FTPFile file)  
    protected long modified​(org.apache.commons.net.ftp.FTPFile file)  

    Methods inherited from class org.springframework.integration.file.filters.AbstractPersistentAcceptOnceFileListFilter

    accept, buildKey, close, fileStillExists, flushIfNeeded, isEqual, remove, rollback, setFlushOnUpdate

    Methods inherited from class org.springframework.integration.file.filters.AbstractDirectoryAwareFileListFilter

    alwaysAccept, isForRecursion, setAlwaysAcceptDirectories, setForRecursion

    Methods inherited from class org.springframework.integration.file.filters.AbstractFileListFilter

    filterFiles, supportsSingleFileFiltering

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.integration.file.filters.FileListFilter

    filterFiles, isForRecursion, supportsSingleFileFiltering
  • Constructor Details

    • FtpPersistentAcceptOnceFileListFilter

      public FtpPersistentAcceptOnceFileListFilter​(org.springframework.integration.metadata.ConcurrentMetadataStore store, java.lang.String prefix)
  • Method Details

    • modified

      protected long modified​(org.apache.commons.net.ftp.FTPFile file)
      Specified by:
      modified in class org.springframework.integration.file.filters.AbstractPersistentAcceptOnceFileListFilter<org.apache.commons.net.ftp.FTPFile>
    • fileName

      protected java.lang.String fileName​(org.apache.commons.net.ftp.FTPFile file)
      Specified by:
      fileName in class org.springframework.integration.file.filters.AbstractPersistentAcceptOnceFileListFilter<org.apache.commons.net.ftp.FTPFile>
    • isDirectory

      protected boolean isDirectory​(org.apache.commons.net.ftp.FTPFile file)
      Overrides:
      isDirectory in class org.springframework.integration.file.filters.AbstractPersistentAcceptOnceFileListFilter<org.apache.commons.net.ftp.FTPFile>