The Atom binding in SwitchYard provides support for polling Atom feeds.
The Atom binding is built on top of camel-atom.
Generic options
Following options can be applied to <binding.atom> definition:
-
feedURI : the URI of the atom feed that should be polled
-
splitEntries: split the entries poll by poll
-
filter : filter entries to return if split
-
lastUpdate : used by filter, starting timestamp for selection
-
throttleEntries : deliver entries immediately
-
feedHeader : add the Abdera Feed as a header
-
sortEntries : if splitEntries is true, this option sorts the entries by date updated
Binding Services with Atom
Here's an example of what a quartz service binding looks like:
<sca:composite name="camel-binding" targetNamespace="urn:switchyard-quickstart:camel-atom-binding:2.0.0">
<sca:service name="AtomParseService" promote="AtomParseService">
<atom:binding.atom>
<atom:feedURI>http://itunes.apple.com/us/rss/topsongs/limit=10/genre=16/explicit=false/xml</atom:feedURI>
<atom:splitEntries>true</atom:splitEntries>
<atom:filter>false</atom:filter>
<atom:feedHeader>false</atom:feedHeader>
</atom:binding.atom>
</sca:service>
</sca:composite>