| |
|
| java.lang.Object dinamica.AbstractModule dinamica.GenericTransaction dinamica.RSSConsumer
RSSConsumer | public class RSSConsumer extends GenericTransaction (Code) | | Retrieves an XML document (RSS feed) and parse the elements
to produce a Recordset.
This class can read RSS feeds given a URL passed to it as a configuration element named "url" in config.xml
or as a request parameter named "url", and then publishes a Recordset named "rss_feed"
that can be printed into the template body as any other recordset. The request parameter
takes precedence over the config.xml element.
This module is suitable to build Portals that aggregate news from
multiple sources, it can be used by Actions that represent "parts" or portlets
to be INCLUDED by a main coordinator Action (the portal page).
The published recordset will contain the following columns:
- title
- description
- link
- pubDate
Creation date: 10/03/2004
Last Update: 15/02/2005
(c) 2004 Martin Cordova
This code is released under the LGPL license
author: Martin Cordova (dinamica@martincordova.com) throws: Throwable - If it can retrieve the RSS document or if the "url" was not defined |
|
|
|