use of com.sun.syndication.feed.synd.SyndFeed in project asterixdb by apache.
the class FetcherEventListenerImpl method fetchFeed.
@SuppressWarnings("unchecked")
private void fetchFeed() throws IllegalArgumentException, IOException, FeedException, FetcherException {
// Retrieve the feed.
// We will get a Feed Polled Event and then a
// Feed Retrieved event (assuming the feed is valid)
SyndFeed feed = fetcher.retrieveFeed(feedUrl);
if (modified) {
if (LOGGER.isInfoEnabled()) {
LOGGER.info(feedUrl + " retrieved");
LOGGER.info(feedUrl + " has a title: " + feed.getTitle() + " and contains " + feed.getEntries().size() + " entries.");
}
List<? extends SyndEntryImpl> fetchedFeeds = feed.getEntries();
rssFeedBuffer.addAll(fetchedFeeds);
}
}
Aggregations