fr.paris.lutece.plugins.rss.web
Class FeedUtil

java.lang.Object
  extended by fr.paris.lutece.plugins.rss.web.FeedUtil

public final class FeedUtil
extends java.lang.Object

RSSUtil.


Method Summary
static java.lang.String getFeed(fr.paris.lutece.portal.business.rss.IFeedResource resource, java.lang.String strFeedType, java.lang.String strEncoding, int nMaxItems)
          Gets an XML for the given resource.
static java.lang.String getFeed(fr.paris.lutece.portal.business.rss.IResourceRss resourceRSS)
          Gets an XML for the given resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFeed

public static java.lang.String getFeed(fr.paris.lutece.portal.business.rss.IFeedResource resource,
                                       java.lang.String strFeedType,
                                       java.lang.String strEncoding,
                                       int nMaxItems)
Gets an XML for the given resource.

Parameters:
resource - resource
strFeedType - feed type
strEncoding - encoding
nMaxItems - max items
Returns:
the xml generated

getFeed

public static java.lang.String getFeed(fr.paris.lutece.portal.business.rss.IResourceRss resourceRSS)
Gets an XML for the given resource.

Parameters:
resourceRSS - the resource
Returns:
the XML as String, encoding is IResourceRss.getEncoding(). Returns an empty String if no items. Returns IResourceRss.createHtmlRss() if IResourceRss.getFeed() is not implemented yet.


Copyright © 2011 Mairie de Paris. All Rights Reserved.