camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: RSS component entries issue
Date Tue, 12 Jul 2016 10:06:50 GMT
The component split the entries by default. See the documentation at
http://camel.apache.org/rss

On Mon, Jul 11, 2016 at 1:08 PM, Paul Blakeley <pblakeley@gmail.com> wrote:
> I am currently trying to use the camel RSS component to take feeds from
> google news.  I have included the route and the code below.  What I am
> finding is that I only only get one entry for the google news feed!  When I
> check the raw rss xml I can see that there are multiple entries.  Also, I
> have checked another feed(bbc) and I can see that I receive multiple
> entries.  Hope someone can help.
>
> -------
>
> <from uri="rss:
> https://news.google.com/news/section?ned=uk&amp;topic=b&amp;output=rss" />
>
> <bean ref="googleRssFeed" method="parse"/>
>
> ------
>
>     public void parse(final Exchange exchange, @Body SyndFeed feed) {
>
>         SyndEntry entry = (SyndEntry) feed.getEntries().get(0);
>
>          LOG.info("pub date = "+ entry.getPublishedDate());
>
> ...
>
> }



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Mime
View raw message