com.sun.syndication.fetcher.impl
Class HttpClientFeedFetcher
java.lang.Object
com.sun.syndication.fetcher.impl.AbstractFeedFetcher
com.sun.syndication.fetcher.impl.HttpClientFeedFetcher
- All Implemented Interfaces:
- FeedFetcher
public class HttpClientFeedFetcher
- extends AbstractFeedFetcher
- Author:
- Nick Lothian
Methods inherited from class com.sun.syndication.fetcher.impl.AbstractFeedFetcher |
addFetcherEventListener, combineFeeds, fireEvent, fireEvent, fireEvent, fireEvent, getUserAgent, handleErrorCodes, isUsingDeltaEncoding, removeFetcherEventListener, setUserAgent, setUsingDeltaEncoding, throw4XXError, throwAuthenticationError |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpClientFeedFetcher
public HttpClientFeedFetcher()
HttpClientFeedFetcher
public HttpClientFeedFetcher(FeedFetcherCache cache)
- Parameters:
cache
-
HttpClientFeedFetcher
public HttpClientFeedFetcher(FeedFetcherCache cache,
HttpClientFeedFetcher.CredentialSupplier credentialSupplier)
getHttpClientParams
public org.apache.commons.httpclient.params.HttpClientParams getHttpClientParams()
- Returns:
- Returns the httpClientParams.
setHttpClientParams
public void setHttpClientParams(org.apache.commons.httpclient.params.HttpClientParams httpClientParams)
- Parameters:
httpClientParams
- The httpClientParams to set.
setConnectTimeout
public void setConnectTimeout(int timeout)
- Parameters:
timeout
- Sets the connect timeout for the HttpClient but using the URLConnection method name.
Uses the HttpClientParams method setConnectionManagerTimeout instead of setConnectTimeout
getConnectTimeout
public int getConnectTimeout()
- Returns:
- The currently used connect timeout for the HttpClient but using the URLConnection method name.
Uses the HttpClientParams method getConnectionManagerTimeout instead of getConnectTimeout
setReadTimeout
public void setReadTimeout(int timeout)
getReadTimeout
public int getReadTimeout()
- Parameters:
timeout
- Sets the read timeout for the URLConnection to a specified timeout, in milliseconds.
getHttpClientMethodCallback
public HttpClientFeedFetcher.HttpClientMethodCallbackIntf getHttpClientMethodCallback()
setHttpClientMethodCallback
public void setHttpClientMethodCallback(HttpClientFeedFetcher.HttpClientMethodCallbackIntf httpClientMethodCallback)
getFeedInfoCache
public FeedFetcherCache getFeedInfoCache()
- Returns:
- the feedInfoCache.
setFeedInfoCache
public void setFeedInfoCache(FeedFetcherCache feedInfoCache)
- Parameters:
feedInfoCache
- the feedInfoCache to set
getCredentialSupplier
public HttpClientFeedFetcher.CredentialSupplier getCredentialSupplier()
- Returns:
- Returns the credentialSupplier.
setCredentialSupplier
public void setCredentialSupplier(HttpClientFeedFetcher.CredentialSupplier credentialSupplier)
- Parameters:
credentialSupplier
- The credentialSupplier to set.
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
com.sun.syndication.io.FeedException
- if the feed is not valid
FetcherException
- if a HTTP error occurred- See Also:
FeedFetcher.retrieveFeed(java.net.URL)
Copyright © 2004-2009 Sun Microsystems. All Rights Reserved.