fr.paris.lutece.plugins.rss.service.type.rss
Class AbstractRssFeedTypeProvider

java.lang.Object
  extended by fr.paris.lutece.plugins.rss.service.type.AbstractFeedTypeProvider
      extended by fr.paris.lutece.plugins.rss.service.type.rss.AbstractRssFeedTypeProvider
All Implemented Interfaces:
IFeedTypeProvider
Direct Known Subclasses:
DefaultRssFeedTypeProvider, Rss09FeedTypeProvider

public abstract class AbstractRssFeedTypeProvider
extends AbstractFeedTypeProvider

RssFeedTypeProvider


Field Summary
 
Fields inherited from class fr.paris.lutece.plugins.rss.service.type.AbstractFeedTypeProvider
MAX_ITEM_UNLIMITED
 
Constructor Summary
AbstractRssFeedTypeProvider()
           
 
Method Summary
abstract  com.sun.syndication.feed.rss.Item getRSSItem(fr.paris.lutece.portal.business.rss.IFeedResourceItem resourceItem)
          The entry from the item
abstract  java.util.List<com.sun.syndication.feed.rss.Item> getRSSItems(java.util.List<fr.paris.lutece.portal.business.rss.IFeedResourceItem> listItems, int nMaxItems)
          Gets the entries for the given items.
 com.sun.syndication.feed.WireFeed getWireFeed(java.lang.String strFeedType, fr.paris.lutece.portal.business.rss.IFeedResource resource, java.lang.String strEncoding, int nMaxItems)
          Get the wire feed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.paris.lutece.plugins.rss.service.type.IFeedTypeProvider
isInvoked
 

Constructor Detail

AbstractRssFeedTypeProvider

public AbstractRssFeedTypeProvider()
Method Detail

getRSSItems

public abstract java.util.List<com.sun.syndication.feed.rss.Item> getRSSItems(java.util.List<fr.paris.lutece.portal.business.rss.IFeedResourceItem> listItems,
                                                                              int nMaxItems)
Gets the entries for the given items.

Parameters:
listItems - the items
nMaxItems - max item
Returns:
the list

getRSSItem

public abstract com.sun.syndication.feed.rss.Item getRSSItem(fr.paris.lutece.portal.business.rss.IFeedResourceItem resourceItem)
The entry from the item

Parameters:
item - the item
Returns:
the entry

getWireFeed

public com.sun.syndication.feed.WireFeed getWireFeed(java.lang.String strFeedType,
                                                     fr.paris.lutece.portal.business.rss.IFeedResource resource,
                                                     java.lang.String strEncoding,
                                                     int nMaxItems)
Get the wire feed

Parameters:
strFeedType - the feed type
resource - the resource
strEncoding - the encoding
nMaxItems - the max number of items
Returns:
a WireFeed


Copyright © 2011 Mairie de Paris. All Rights Reserved.