org.apache.camel.component.atom
Class UpdatedDateFilter

java.lang.Object
  extended by org.apache.camel.component.atom.UpdatedDateFilter
All Implemented Interfaces:
EntryFilter

public class UpdatedDateFilter
extends Object
implements EntryFilter

Filters out all entries which occur before the last time of the entry we saw (assuming entries arrive sorted in order).

Version:

Constructor Summary
UpdatedDateFilter(Date lastUpdate)
           
 
Method Summary
 boolean isValidEntry(FeedEndpoint endpoint, Object feed, Object entry)
          Tests to be used as filtering the feed for only entries of interest, such as only new entries, etc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdatedDateFilter

public UpdatedDateFilter(Date lastUpdate)
Method Detail

isValidEntry

public boolean isValidEntry(FeedEndpoint endpoint,
                            Object feed,
                            Object entry)
Description copied from interface: EntryFilter
Tests to be used as filtering the feed for only entries of interest, such as only new entries, etc.

Specified by:
isValidEntry in interface EntryFilter
Parameters:
endpoint - the endpoint
feed - the feed
entry - the given entry to filter
Returns:
true to include the entry, false to skip it


Apache Camel