com.sun.syndication.fetcher.impl
Interface FeedFetcherCache

All Known Implementing Classes:
HashMapFeedInfoCache, NewsFeedCache

public interface FeedFetcherCache

An interface to allow caching of feeds. Implementing this allows the HttpURLFeedFetcher class to enable conditional gets

Author:
Nick Lothian

Method Summary
 SyndFeedInfo getFeedInfo(URL feedUrl)
          Get a SyndFeedInfo object from the cache.
 void setFeedInfo(URL feedUrl, SyndFeedInfo syndFeedInfo)
          Add a SyndFeedInfo object to the cache
 

Method Detail

getFeedInfo

public SyndFeedInfo getFeedInfo(URL feedUrl)
Get a SyndFeedInfo object from the cache.

Parameters:
feedUrl - The url of the feed
Returns:
A SyndFeedInfo or null if it is not in the cache

setFeedInfo

public void setFeedInfo(URL feedUrl,
                        SyndFeedInfo syndFeedInfo)
Add a SyndFeedInfo object to the cache

Parameters:
feedUrl - The url of the feed
syndFeedInfo - A SyndFeedInfo for the feed