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 Details

    • UpdatedDateFilter

      public UpdatedDateFilter()
    • UpdatedDateFilter

      public UpdatedDateFilter(Date lastUpdate)
  • Method Details

    • getLastUpdate

      public Date getLastUpdate()
    • isValidEntry

      public boolean isValidEntry(com.rometools.rome.feed.synd.SyndEntry entry)
      Specified by:
      isValidEntry in interface org.apache.camel.component.feed.EntryFilter<com.rometools.rome.feed.synd.SyndEntry>