Results 1 to 3 of 3

Thread: Add a date filter in a composite filter of a file-inbound-channel-adapter

  1. #1
    Join Date
    Aug 2009
    Location
    Paris, France
    Posts
    32

    Lightbulb Add a date filter in a composite filter of a file-inbound-channel-adapter

    Hi all,

    I am using a file-inbound-channel-adapter to parse files in a directory. I only get the .xml ones so i have a regex filter, but i also would like to get file only if the were created (or modified) today (for example).

    Is there a simple way to do that ?

    Thank you very much

  2. #2
    Join Date
    Mar 2010
    Location
    Gtr Philadelphia, PA
    Posts
    2,015

    Default

    Yes; use a custom FileListFilter. As described here, http://static.springsource.org/sprin...tml/files.html, it can be combined with the Regex filter by using a CompositeFileListFilter.
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

  3. #3
    Join Date
    Aug 2009
    Location
    Paris, France
    Posts
    32

    Default

    Quote Originally Posted by Gary Russell View Post
    Yes; use a custom FileListFilter. As described here, http://static.springsource.org/sprin...tml/files.html, it can be combined with the Regex filter by using a CompositeFileListFilter.
    Thank you so much gary, i'll try that very soon and keep you informed.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •