Package org.apache.camel.component.atom
Class UpdatedDateFilter
- java.lang.Object
-
- org.apache.camel.component.atom.UpdatedDateFilter
-
- All Implemented Interfaces:
EntryFilter<org.apache.abdera.model.Entry>,org.apache.camel.resume.ResumeAdapter
@JdkService("adapter-factory") public class UpdatedDateFilter extends Object implements EntryFilter<org.apache.abdera.model.Entry>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 booleanisValidEntry(org.apache.abdera.model.Entry 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
-
Methods inherited from interface org.apache.camel.component.feed.EntryFilter
resume
-
-
-
-
Constructor Detail
-
UpdatedDateFilter
public UpdatedDateFilter()
-
UpdatedDateFilter
public UpdatedDateFilter(Date lastUpdate)
-
-
Method Detail
-
isValidEntry
public boolean isValidEntry(org.apache.abdera.model.Entry 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<org.apache.abdera.model.Entry>- Parameters:
entry- the given entry to filter- Returns:
- true to include the entry,
false to skip it
-
-