我有一条 Camel 路线:
from("file:///u01/www/images/nonprofits-test?move=.done&preMove=.processing&filter=#nonpFileFilter&minDepth=2&recursive=true")
稍后在路由中我需要访问原始文件名。我如何获得这些信息?所有的标题都包含类似
${file:name}
的信息,但不是实际的文件名。提前致谢!
基本问题是在使用 grails 运行 Camel 时没有正确评估简单语言。这正在 Camel 用户列表中进一步讨论。
最佳答案
有一个名为“CamelFileName”的头文件存储这个
见 camel-file2标题部分了解更多详情...
关于apache-camel - Camel File Endpoint - 获取文件名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9705105/