简体   繁体   English

骆驼:filterFile DSL示例

[英]Camel: filterFile DSL example

I want to use filterFile inside my camel route. 我想在骆驼路线内使用filterFile

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 我已阅读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. 但是我不知道该在哪里使用这种简单的语言。

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...")) 它可能看起来像这样: from(String.format("sftp://%s@%s:%d/%s?filterFile=$simple{file:size} > 5000&delete=true..."))

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM