Reputation: 37034
I want to use filterFile
inside my camel route.
I have route like this:
from(String.format("sftp://%s@%s:%d/%s?password=%s&delete=true&readLock=changed&delay=%s,
systemSettingsService.getSystemSettings().getSftpUserName(),
systemSettingsService.getSystemSettings().getSftpHost(),
systemSettingsService.getSystemSettings().getSftpPort(),
systemSettingsService.getSystemSettings().getSftpSourcePathDestWorking(),
systemSettingsService.getSystemSettings().getSftpPassword(),
systemSettingsService.getSystemSettings().getSftpPollPeriod()))...
I have read file2 doc
Here is written:
Camel 2.18: Filters the file based on Simple language. For example to filter on file size, you can use ${file}:size > 5000.
But I don't understand where should I use this simple language.
Upvotes: 1
Views: 1985
Reputation: 1527
I think the docs have made a typo. It would probably look something like this:
from(String.format("sftp://%s@%s:%d/%s?filterFile=$simple{file:size} > 5000&delete=true..."))
Upvotes: 4