Package io.toro.martini.rss
Class HttpSyndFeedClient
- java.lang.Object
-
- io.toro.martini.rss.HttpSyndFeedClient
-
- All Implemented Interfaces:
SyndFeedClient
public class HttpSyndFeedClient extends Object implements SyndFeedClient
-
-
Constructor Summary
Constructors Constructor Description HttpSyndFeedClient(org.apache.http.client.cache.HttpCacheStorage storage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SyndFeedreadRss(URI uri, boolean onlyNew)Fetches an RSS feed from the given location and caches the result.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.toro.martini.rss.SyndFeedClient
readRss, readRss, readRss
-
-
-
-
Method Detail
-
readRss
public SyndFeed readRss(URI uri, boolean onlyNew)
Description copied from interface:SyndFeedClientFetches an RSS feed from the given location and caches the result.
If
onlyNewis set totrue, the to-be-returned feed is modified to include only new entries; that is, items that don't exist in the previously cached feed, if any. Take caution when using this option as eventually, the cache's contents may eventually spill over if it becomes over-populated.- Specified by:
readRssin interfaceSyndFeedClient- Parameters:
uri- where to fetch the RSS feed fromonlyNew- set totrueif feed should only include un-cached feed items- Returns:
- retrieved feed
-
-