2

How I can configurate my filefilter without this

<bean id="#myFilter" class="com.mycompany.Myfilter"/>,

just use JAVA

user7487351
  • 43
  • 1
  • 6
izlo1dro1d
  • 23
  • 3
  • @ClausIbsent i try use Apache Camel for download files between many days and insert to SQL, but ftp server have a lot of other files. I want use filefilter for matches file by filename, filename content date like 13_07_2016. – izlo1dro1d Dec 25 '16 at 12:55
  • See the unit tests of camel-ftp where there are some that uses a file filter: https://github.com/apache/camel/tree/master/components/camel-ftp/src/test – Claus Ibsen Dec 26 '16 at 08:04

1 Answers1

0

Just create a class that implements GenericFileFilter and then add to the main Camel

  main.bind("ftpProcessor",new FtpProcessor());