camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gonzo <m...@jwojciechowski.pl>
Subject ftp advanced filtering
Date Sat, 13 Aug 2016 21:56:42 GMT
Hello,

I need to add some database checks into my filter. Having file name is not
enough for my case.
I'm wondering if there is any other option of file filtering than using
GenericFileFilter in uri?
Example:
from("ftp://user@host/Downloads?password=password&delete=true&filter=#myFileFilter")
('delete=true' is added on purpose. By default I need files to be deleted.)

1. May I add any argument to '#myFileFilter(userId)' in uri?
2. Can I use '.process()' and '.stop()' combination to prevent some files
from deleting?
3. Can '.filter(new Predicate() ...)' be used in ftp route?

Regards,
Jared



--
View this message in context: http://camel.465427.n5.nabble.com/ftp-advanced-filtering-tp5786379.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message