public class FeedHelper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FeedHelper.Field |
static class |
FeedHelper.MergedEntries |
Modifier and Type | Field and Description |
---|---|
static int |
NO_LIMIT |
Constructor and Description |
---|
FeedHelper() |
Modifier and Type | Method and Description |
---|---|
static net.sf.json.JSONObject |
getFeed(String feedUrl)
return a complete feed as JSON object
|
static net.sf.json.JSONObject |
getFeed(String feedUrl,
int limit)
return partial feed as JSON object
|
static net.sf.json.JSONObject |
mergeFeeds(String[] urls)
merge two or more feeds and return all the entries
|
static net.sf.json.JSONObject |
mergeFeeds(String[] urls,
int limit)
merge two or more feeds and return first "limit" entries
|
static com.sun.syndication.feed.synd.SyndFeed |
parseFeed(String feedUrl) |
static Map<String,Object> |
searchFeedEntry(String[] urls,
String id) |
public static final int NO_LIMIT
public static net.sf.json.JSONObject getFeed(String feedUrl) throws Exception
feedUrl
- - URL of the feedException
public static net.sf.json.JSONObject getFeed(String feedUrl, int limit) throws Exception
feedUrl
- - URL of the feedlimit
- -Exception
public static net.sf.json.JSONObject mergeFeeds(String[] urls) throws UnsupportedEncodingException
urls
- - URLs of the feeds that will be mergedUnsupportedEncodingException
public static net.sf.json.JSONObject mergeFeeds(String[] urls, int limit) throws UnsupportedEncodingException
urls
- - URLs of the feeds that will be mergedlimit
- -UnsupportedEncodingException
public static Map<String,Object> searchFeedEntry(String[] urls, String id) throws URISyntaxException, UnsupportedEncodingException
Copyright © 2013 Nuxeo SA. All Rights Reserved.