public class FeedParser extends Object
The output is totally dependent on ROME classes. There could be an abstraction layer but then it wouldn't be as 'simple' which is what this portlet aims to be.
|Constructor and Description|
|Modifier and Type||Method and Description|
Parse the given feed url and return the raw type
Parses the entries contained in an RSS feed, extracts the enclosures, converts them to an
public com.sun.syndication.feed.synd.SyndFeed parseFeed(String feedUrl)
public static Map<String,Attachment> parseFeedEnclosures(com.sun.syndication.feed.synd.SyndFeed feed)
Attachmentadds them to the map with the entry uri as key.
The RSS spec says there is only one enclosure per item so this is what we work with. We don't actually check this so it's possible that if you have more than one enclosure attached to an item that only the latest one will be presented in the end.
Copyright © 2003–2019 The Sakai Foundation. All rights reserved.