Package io.toro.martini.rss
Interface SyndFeedClient
-
- All Known Implementing Classes:
HttpSyndFeedClient
public interface SyndFeedClient
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default SyndFeedreadRss(String uri)default SyndFeedreadRss(String uri, boolean onlyNew)default SyndFeedreadRss(URI uri)SyndFeedreadRss(URI uri, boolean onlyNew)Fetches an RSS feed from the given location and caches the result.
-
-
-
Method Detail
-
readRss
SyndFeed readRss(URI uri, boolean onlyNew)
Fetches 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.- Parameters:
uri- where to fetch the RSS feed fromonlyNew- set totrueif feed should only include un-cached feed items- Returns:
- retrieved feed
- Throws:
IllegalArgumentException- if url is invalid
-
-