org.apache.camel.component.atom
Class UpdatedDateFilter
java.lang.Object
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:
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 |
UpdatedDateFilter
public UpdatedDateFilter(Date lastUpdate)
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 endpointfeed
- the feedentry
- the given entry to filter
- Returns:
- true to include the entry, false to skip it
Apache Camel