fr.paris.lutece.plugins.rss.service
Class RssContentLoader

java.lang.Object
  extended by fr.paris.lutece.plugins.rss.service.RssContentLoader
All Implemented Interfaces:
fr.paris.lutece.portal.service.resource.ResourceLoader

public class RssContentLoader
extends Object
implements fr.paris.lutece.portal.service.resource.ResourceLoader

This class delivers RSS contents loaded from Internet Feeds


Constructor Summary
RssContentLoader()
           
 
Method Summary
static String fetchAllRssFeeds()
          Fetch all feeds
static String fetchRssFeed(int nId)
          Fetch an active RSS feed
 fr.paris.lutece.portal.service.resource.Resource getResource(String strId)
          Implementation of the ResourceLoader interface
 Collection getResources()
          Implementation of the ResourceLoader interface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RssContentLoader

public RssContentLoader()
Method Detail

getResources

public Collection getResources()
Implementation of the ResourceLoader interface

Specified by:
getResources in interface fr.paris.lutece.portal.service.resource.ResourceLoader
Returns:
A collection of resources

getResource

public fr.paris.lutece.portal.service.resource.Resource getResource(String strId)
Implementation of the ResourceLoader interface

Specified by:
getResource in interface fr.paris.lutece.portal.service.resource.ResourceLoader
Parameters:
strId - The resource Id
Returns:
The Resource

fetchRssFeed

public static String fetchRssFeed(int nId)
                           throws RssParsingException
Fetch an active RSS feed

Parameters:
nId - The RSS feed Id
Returns:
The content of the RSS feed
Throws:
RssParsingException - If a parsing exception occurs

fetchAllRssFeeds

public static String fetchAllRssFeeds()
Fetch all feeds

Returns:
the log message


Copyright © 2014 Mairie de Paris. All Rights Reserved.