org.apache.camel.component.atom
Class AtomEntryPollingConsumer

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultConsumer
          extended by org.apache.camel.impl.ScheduledPollConsumer
              extended by org.apache.camel.component.feed.FeedPollingConsumer
                  extended by org.apache.camel.component.feed.FeedEntryPollingConsumer
                      extended by org.apache.camel.component.atom.AtomEntryPollingConsumer
All Implemented Interfaces:
Runnable, Consumer, Service, SuspendableService

public class AtomEntryPollingConsumer
extends FeedEntryPollingConsumer

Consumer to poll atom feeds and return each entry from the feed step by step.

Version:
$Revision: 15191 $

Field Summary
 
Fields inherited from class org.apache.camel.component.feed.FeedEntryPollingConsumer
entryFilter, entryIndex, list
 
Fields inherited from class org.apache.camel.component.feed.FeedPollingConsumer
DEFAULT_CONSUMER_DELAY, endpoint
 
Fields inherited from class org.apache.camel.impl.DefaultConsumer
log
 
Constructor Summary
AtomEntryPollingConsumer(AtomEndpoint endpoint, Processor processor, boolean filter, Date lastUpdate)
           
 
Method Summary
protected  EntryFilter createEntryFilter(Date lastUpdate)
           
protected  Object createFeed()
           
protected  void populateList(Object feed)
           
protected  void resetList()
           
protected  void sortEntries(org.apache.abdera.model.Feed feed)
           
 
Methods inherited from class org.apache.camel.component.feed.FeedEntryPollingConsumer
poll
 
Methods inherited from class org.apache.camel.impl.ScheduledPollConsumer
doStart, doStop, getDelay, getInitialDelay, getPollStrategy, getTimeUnit, isPollAllowed, isSuspended, isUseFixedDelay, resume, run, setDelay, setInitialDelay, setPollStrategy, setTimeUnit, setUseFixedDelay, suspend
 
Methods inherited from class org.apache.camel.impl.DefaultConsumer
getEndpoint, getExceptionHandler, getProcessor, handleException, setExceptionHandler, toString
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

AtomEntryPollingConsumer

public AtomEntryPollingConsumer(AtomEndpoint endpoint,
                                Processor processor,
                                boolean filter,
                                Date lastUpdate)
Method Detail

sortEntries

protected void sortEntries(org.apache.abdera.model.Feed feed)

populateList

protected void populateList(Object feed)
                     throws org.apache.abdera.parser.ParseException,
                            IOException
Specified by:
populateList in class FeedEntryPollingConsumer
Throws:
org.apache.abdera.parser.ParseException
IOException

createFeed

protected Object createFeed()
                     throws IOException
Specified by:
createFeed in class FeedPollingConsumer
Throws:
IOException

resetList

protected void resetList()
Specified by:
resetList in class FeedEntryPollingConsumer

createEntryFilter

protected EntryFilter createEntryFilter(Date lastUpdate)
Specified by:
createEntryFilter in class FeedEntryPollingConsumer


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.