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).
-
Field Summary
Fields inherited from interface org.apache.camel.resume.ResumeAdapter
RESUME_ADAPTER_FACTORY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisValidEntry(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, waitMethods inherited from interface org.apache.camel.component.feed.EntryFilter
resume
-
Constructor Details
-
UpdatedDateFilter
public UpdatedDateFilter() -
UpdatedDateFilter
-
-
Method Details
-
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
-