Package 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).
-
-
Constructor Summary
Constructors Constructor Description UpdatedDateFilter(Date lastUpdate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisValidEntry(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.
-
-
-
Constructor Detail
-
UpdatedDateFilter
public UpdatedDateFilter(Date lastUpdate)
-
-
Method Detail
-
isValidEntry
public boolean isValidEntry(FeedEndpoint endpoint, Object feed, Object entry)
Description copied from interface:EntryFilterTests to be used as filtering the feed for only entries of interest, such as only new entries, etc.- Specified by:
isValidEntryin interfaceEntryFilter- Parameters:
endpoint- the endpointfeed- the feedentry- the given entry to filter- Returns:
- true to include the entry,
false to skip it
-
-