org.rometools.fetcher.impl
Interface FeedFetcherCache

All Known Implementing Classes:
DiskFeedInfoCache, HashMapFeedInfoCache, LinkedHashMapFeedInfoCache

public interface FeedFetcherCache

An interface to allow caching of feed details. Implementing this allows the org.rometools.fetcher.io.HttpURLFeedFetcher class to enable conditional gets

Author:
Nick Lothian

Method Summary
 void clear()
          Removes all items from the cache.
 SyndFeedInfo getFeedInfo(URL feedUrl)
          Get a SyndFeedInfo object from the cache.
 SyndFeedInfo remove(URL feedUrl)
          Removes the SyndFeedInfo identified by the url from the cache.
 void setFeedInfo(URL feedUrl, SyndFeedInfo syndFeedInfo)
          Add a SyndFeedInfo object to the cache
 

Method Detail

getFeedInfo

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

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

clear

void clear()
Removes all items from the cache.


remove

SyndFeedInfo remove(URL feedUrl)
Removes the SyndFeedInfo identified by the url from the cache.

Returns:
The removed SyndFeedInfo


Copyright © 2004-2013 ROME Project. All Rights Reserved.