Apache Camel RSS Feed处理器跳过同一个pubdate的feed

时间:2013-06-05 19:32:40

标签: rss apache-camel

我有一个camel设置来读取feed,我使用splitEntries = true并且我使用了可用的org.apache.camel.component.rss.RssEndpoint,但它跳过了具有相同时间戳的feed。有人知道发生了什么吗?

1 个答案:

答案 0 :(得分:1)

最后找到了解决方案,需要自定义FeedPollingConsumer类,它在内部使用UpdatedDateFilter,并删除

lastUpdate.after(updated) || lastUpdate.equals(updated)

并删除lastUpdate.equals(已更新),以处理相同的pubDate时间戳提要。 UpdatedDateFilter也不可扩展,因此checkout会从FeedFilter界面实现您自己的。

感谢。如果您有更好的解决方案,请与我们联系。