public class SimpleRSSFeedFetcher extends Object implements RSSFeedFetcher
RSSFeedFetcher
for feed retrieval http
that follows redirects and
supports conditional gets. Will attempt to fetch all feed channels
defined in the provided
aggregate feeds
. Failures to fetch a feed result for a given feed channel are logged at ERROR
level. Because of the single threaded nature of this implementation, it is suited for situations where the
number feed channels to retrieve is small and the time window between update checks is large enough. For more
demanding situations, use a more performant RSSFeedFetcher implementation.RSSFeedFetcher
Constructor and Description |
---|
SimpleRSSFeedFetcher() |
Modifier and Type | Method and Description |
---|---|
Set<AggregateFeed> |
fetchAggregateFeeds(Set<AggregateFeed> aggregateFeeds)
|
protected com.rometools.rome.feed.synd.SyndFeed |
fetchFeedChannel(FeedChannel channel)
Fetch the given feed channel.
|
void |
shutdown() |
public Set<AggregateFeed> fetchAggregateFeeds(Set<AggregateFeed> aggregateFeeds)
RSSFeedFetcher
fetchAggregateFeeds
in interface RSSFeedFetcher
aggregateFeeds
- the aggregates to fetch feed content for (must not be null)public void shutdown()
shutdown
in interface RSSFeedFetcher
protected com.rometools.rome.feed.synd.SyndFeed fetchFeedChannel(FeedChannel channel)
null
feed
property set.channel
- the feed channel to fetchfeed
property set to the result of the fetchCopyright © 2016 Magnolia International Ltd.. All rights reserved.