public class HttpSyndFeedClient extends Object implements SyndFeedClient
Constructor and Description |
---|
HttpSyndFeedClient(org.apache.http.client.cache.HttpCacheStorage storage) |
Modifier and Type | Method and Description |
---|---|
SyndFeed |
readRss(URI uri,
boolean onlyNew)
Fetches an RSS feed from the given location and caches the result.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
readRss, readRss, readRss
public HttpSyndFeedClient(org.apache.http.client.cache.HttpCacheStorage storage)
public SyndFeed readRss(URI uri, boolean onlyNew)
SyndFeedClient
Fetches an RSS feed from the given location and caches the result.
If onlyNew
is set to true
, 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.
readRss
in interface SyndFeedClient
uri
- where to fetch the RSS feed fromonlyNew
- set to true
if feed should only include un-cached feed itemsCopyright © 2020. All rights reserved.