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:
$Revision: 656106 $

Constructor Summary
UpdatedDateFilter(Date lastUpdate)
           
 
Method Summary
 boolean isValidEntry(AtomEndpoint endpoint, org.apache.abdera.model.Document<org.apache.abdera.model.Feed> feed, 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
 

Constructor Detail

UpdatedDateFilter

public UpdatedDateFilter(Date lastUpdate)
Method Detail

isValidEntry

public boolean isValidEntry(AtomEndpoint endpoint,
                            org.apache.abdera.model.Document<org.apache.abdera.model.Feed> feed,
                            org.apache.abdera.model.Entry 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 Atom feed
entry - the given entry to filter
Returns:
true to include the entry, false to skip it


Copyright © 2009 Apache Software Foundation. All Rights Reserved.