JBoss Community Archive (Read Only)

SwitchYard

RSS

The RSS binding in SwitchYard provides support for polling RSS feeds.

The RSS binding is built on top of camel-rss.

Generic options

Following options can be applied to <binding.rss> 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 RSS

Here's an example of what a RSS service binding looks like:

<sca:composite name="camel-binding" targetNamespace="urn:switchyard-quickstart:camel-rss-binding:0.1.0">
    <sca:service name="RSSParseService" promote="RSSParseService">
        <rss:binding.rss>
            <rss:feedURI>http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/topsongs/limit=10/xml</rss:feedURI>
            <rss:splitEntries>true</rss:splitEntries>
            <rss:filter>false</rss:filter>
            <rss:feedHeader>false</rss:feedHeader>
        </rss:binding.rss>
    </sca:service>
</sca:composite>
JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-13 09:45:44 UTC, last content change 2014-12-10 20:08:08 UTC.