com.sun.syndication.fetcher.impl
Class HttpClientFeedFetcher

java.lang.Object
  extended bycom.sun.syndication.fetcher.impl.AbstractFeedFetcher
      extended bycom.sun.syndication.fetcher.impl.HttpClientFeedFetcher
All Implemented Interfaces:
FeedFetcher

public class HttpClientFeedFetcher
extends AbstractFeedFetcher

Author:
Nick Lothian

Field Summary
 
Fields inherited from interface com.sun.syndication.fetcher.FeedFetcher
DEFAULT_USER_AGENT
 
Constructor Summary
HttpClientFeedFetcher()
           
HttpClientFeedFetcher(FeedFetcherCache cache)
           
 
Method Summary
 com.sun.syndication.feed.synd.SyndFeed retrieveFeed(java.net.URL feedUrl)
          Retrieve a feed over HTTP
 
Methods inherited from class com.sun.syndication.fetcher.impl.AbstractFeedFetcher
addFetcherEventListener, fireEvent, fireEvent, getUserAgent, handleErrorCodes, removeFetcherPolledListener, setUserAgent, throw4XXError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpClientFeedFetcher

public HttpClientFeedFetcher()

HttpClientFeedFetcher

public HttpClientFeedFetcher(FeedFetcherCache cache)
Parameters:
cache -
Method Detail

retrieveFeed

public com.sun.syndication.feed.synd.SyndFeed retrieveFeed(java.net.URL feedUrl)
                                                    throws java.lang.IllegalArgumentException,
                                                           java.io.IOException,
                                                           com.sun.syndication.io.FeedException,
                                                           FetcherException
Description copied from interface: FeedFetcher
Retrieve a feed over HTTP

Parameters:
feedUrl - A non-null URL of a RSS/Atom feed to retrieve
Returns:
A SyndFeed object
Throws:
java.lang.IllegalArgumentException - if the URL is null;
java.io.IOException - if a TCP error occurs
FetcherException - if a HTTP error occurred
com.sun.syndication.io.FeedException - if the feed is not valid
See Also:
FeedFetcher.retrieveFeed(java.net.URL)


Copyright © 2004 Sun Microsystems. All Rights Reserved.