com.sun.syndication.fetcher.impl
Interface FeedFetcherCache

All Known Implementing Classes:
HashMapFeedInfoCache

public interface FeedFetcherCache

An interface to allow caching of feeds. Implementing this allows the com.sun.syndication.fetcher.io.HttpURLFeedFetcher class to enable conditional gets

Author:
Nick Lothian

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

Method Detail

getFeedInfo

public SyndFeedInfo getFeedInfo(java.net.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(java.net.URL feedUrl,
                        SyndFeedInfo syndFeedInfo)
Add a SyndFeedInfo object to the cache

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


Copyright © 2004-2005 Sun Microsystems. All Rights Reserved.