public class HttpClientFeedFetcher extends AbstractFeedFetcher
| Modifier and Type | Class and Description |
|---|---|
static interface |
HttpClientFeedFetcher.CredentialSupplier |
static interface |
HttpClientFeedFetcher.HttpClientMethodCallbackIntf |
DEFAULT_USER_AGENT| Constructor and Description |
|---|
HttpClientFeedFetcher() |
HttpClientFeedFetcher(FeedFetcherCache cache) |
HttpClientFeedFetcher(FeedFetcherCache cache,
HttpClientFeedFetcher.CredentialSupplier credentialSupplier) |
| Modifier and Type | Method and Description |
|---|---|
int |
getConnectTimeout() |
HttpClientFeedFetcher.CredentialSupplier |
getCredentialSupplier() |
FeedFetcherCache |
getFeedInfoCache() |
HttpClientFeedFetcher.HttpClientMethodCallbackIntf |
getHttpClientMethodCallback() |
org.apache.commons.httpclient.params.HttpClientParams |
getHttpClientParams() |
int |
getReadTimeout() |
com.rometools.rome.feed.synd.SyndFeed |
retrieveFeed(String userAgent,
URL feedUrl) |
com.rometools.rome.feed.synd.SyndFeed |
retrieveFeed(URL url)
Retrieve a feed over HTTP
|
void |
setConnectTimeout(int timeout) |
void |
setCredentialSupplier(HttpClientFeedFetcher.CredentialSupplier credentialSupplier) |
void |
setFeedInfoCache(FeedFetcherCache feedInfoCache) |
void |
setHttpClientMethodCallback(HttpClientFeedFetcher.HttpClientMethodCallbackIntf httpClientMethodCallback) |
void |
setHttpClientParams(org.apache.commons.httpclient.params.HttpClientParams httpClientParams) |
void |
setReadTimeout(int timeout) |
addFetcherEventListener, combineFeeds, fireEvent, fireEvent, fireEvent, fireEvent, getUserAgent, handleErrorCodes, isPreserveWireFeed, isUsingDeltaEncoding, removeFetcherEventListener, setPreserveWireFeed, setUserAgent, setUsingDeltaEncoding, throw4XXError, throwAuthenticationErrorpublic HttpClientFeedFetcher()
public HttpClientFeedFetcher(FeedFetcherCache cache)
cache - public HttpClientFeedFetcher(FeedFetcherCache cache, HttpClientFeedFetcher.CredentialSupplier credentialSupplier)
public void setConnectTimeout(int timeout)
timeout - Sets the connect timeout for the HttpClient but using the URLConnection method
name. Uses the HttpClientParams method setConnectionManagerTimeout instead of
setConnectTimeoutpublic int getConnectTimeout()
public void setCredentialSupplier(HttpClientFeedFetcher.CredentialSupplier credentialSupplier)
credentialSupplier - The credentialSupplier to set.public HttpClientFeedFetcher.CredentialSupplier getCredentialSupplier()
public void setFeedInfoCache(FeedFetcherCache feedInfoCache)
feedInfoCache - the feedInfoCache to setpublic FeedFetcherCache getFeedInfoCache()
public void setHttpClientMethodCallback(HttpClientFeedFetcher.HttpClientMethodCallbackIntf httpClientMethodCallback)
public HttpClientFeedFetcher.HttpClientMethodCallbackIntf getHttpClientMethodCallback()
public void setHttpClientParams(org.apache.commons.httpclient.params.HttpClientParams httpClientParams)
httpClientParams - The httpClientParams to set.public org.apache.commons.httpclient.params.HttpClientParams getHttpClientParams()
public void setReadTimeout(int timeout)
public int getReadTimeout()
public com.rometools.rome.feed.synd.SyndFeed retrieveFeed(URL url) throws IllegalArgumentException, IOException, com.rometools.rome.io.FeedException, FetcherException
FeedFetcherurl - A non-null URL of a RSS/Atom feed to retrieveSyndFeed objectIllegalArgumentException - if the URL is null;IOException - if a TCP error occurscom.rometools.rome.io.FeedException - if the feed is not validFetcherException - if a HTTP error occurredpublic com.rometools.rome.feed.synd.SyndFeed retrieveFeed(String userAgent, URL feedUrl) throws IllegalArgumentException, IOException, com.rometools.rome.io.FeedException, FetcherException
IllegalArgumentExceptionIOExceptioncom.rometools.rome.io.FeedExceptionFetcherExceptionFeedFetcher.retrieveFeed(java.net.URL)Copyright © 2015. All Rights Reserved.