Package org.apache.camel.component.rss
Class UpdatedDateFilter
- java.lang.Object
-
- org.apache.camel.component.rss.UpdatedDateFilter
-
- All Implemented Interfaces:
org.apache.camel.component.feed.EntryFilter<com.rometools.rome.feed.synd.SyndEntry>
,org.apache.camel.resume.ResumeAdapter
public class UpdatedDateFilter extends Object implements org.apache.camel.component.feed.EntryFilter<com.rometools.rome.feed.synd.SyndEntry>
Filters out all entries which occur before the last time of the entry we saw (assuming entries arrive sorted in order).
-
-
Constructor Summary
Constructors Constructor Description UpdatedDateFilter()
UpdatedDateFilter(Date lastUpdate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getLastUpdate()
boolean
isValidEntry(com.rometools.rome.feed.synd.SyndEntry entry)
-
-
-
Constructor Detail
-
UpdatedDateFilter
public UpdatedDateFilter()
-
UpdatedDateFilter
public UpdatedDateFilter(Date lastUpdate)
-
-
Method Detail
-
getLastUpdate
public Date getLastUpdate()
-
isValidEntry
public boolean isValidEntry(com.rometools.rome.feed.synd.SyndEntry entry)
- Specified by:
isValidEntry
in interfaceorg.apache.camel.component.feed.EntryFilter<com.rometools.rome.feed.synd.SyndEntry>
-
-