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 java.lang.Object
implements fr.paris.lutece.portal.service.resource.ResourceLoader

This class delivers RSS contents loaded from Internet Feeds


Constructor Summary
RssContentLoader()
           
 
Method Summary
static java.lang.String fetchAllRssFeeds()
           
static java.lang.String fetchRssFeed(int nId)
          Fetch a RSS feed
 fr.paris.lutece.portal.service.resource.Resource getResource(java.lang.String strId)
          Implementation of the ResourceLoader interface
 java.util.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 java.util.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(java.lang.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 java.lang.String fetchRssFeed(int nId)
                                     throws RssParsingException
Fetch a RSS feed

Parameters:
nId - The RSS feed Id
Returns:
The content of the RSS feed
Throws:
RssParsingException

fetchAllRssFeeds

public static java.lang.String fetchAllRssFeeds()


Copyright © 2007 Mairie de Paris. All Rights Reserved.