apache-camel - Camel File Endpoint - 获取文件名

标签 apache-camel

我有一条 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/

相关文章:

java - 将具体实现连接到 blueprint.xml 中的接口(interface)

spring - 使用 Java 配置时,Camel 的 BridgePropertyPlaceholderConfigurer 不工作

java - 使用camel dsl接收sqs消息属性?

apache-camel - Camel : Is it Possible to Implement Request/Reply & Competing Consumers with the Help of Asynchronous Processor?

jms - Camel 响应消息上的 TimeToLive

java - 为什么 Camel 在飞行存储库中保留交换?

java - 简单聚合策略 Apache Camel

java - 为什么运行 Camel 示例需要在主线程上 hibernate

java - 如何使用 Apache Camel REST DSL (Servlet/ReSTLet) 设置 HTTP 状态代码原因

java - 从路线外停止 Camel 路线