@Deprecated public class HttpClientFeedFetcher extends AbstractFeedFetcher
Modifier and Type | Class and Description |
---|---|
static interface |
HttpClientFeedFetcher.CredentialSupplier
Deprecated.
|
static interface |
HttpClientFeedFetcher.HttpClientMethodCallbackIntf
Deprecated.
|
DEFAULT_USER_AGENT
Constructor and Description |
---|
HttpClientFeedFetcher()
Deprecated.
|
HttpClientFeedFetcher(FeedFetcherCache cache)
Deprecated.
|
HttpClientFeedFetcher(FeedFetcherCache cache,
HttpClientFeedFetcher.CredentialSupplier credentialSupplier)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
getConnectTimeout()
Deprecated.
|
HttpClientFeedFetcher.CredentialSupplier |
getCredentialSupplier()
Deprecated.
|
FeedFetcherCache |
getFeedInfoCache()
Deprecated.
|
HttpClientFeedFetcher.HttpClientMethodCallbackIntf |
getHttpClientMethodCallback()
Deprecated.
|
org.apache.commons.httpclient.params.HttpClientParams |
getHttpClientParams()
Deprecated.
|
int |
getReadTimeout()
Deprecated.
|
SyndFeed |
retrieveFeed(String userAgent,
URL feedUrl)
Deprecated.
|
SyndFeed |
retrieveFeed(URL url)
Deprecated.
Retrieve a feed over HTTP
|
void |
setConnectTimeout(int timeout)
Deprecated.
|
void |
setCredentialSupplier(HttpClientFeedFetcher.CredentialSupplier credentialSupplier)
Deprecated.
|
void |
setCustomRequestHeaders(Map<String,String> customRequestHeaders)
Deprecated.
Apply any request headers to the HTTP method call.
|
void |
setFeedInfoCache(FeedFetcherCache feedInfoCache)
Deprecated.
|
void |
setHttpClientMethodCallback(HttpClientFeedFetcher.HttpClientMethodCallbackIntf httpClientMethodCallback)
Deprecated.
|
void |
setHttpClientParams(org.apache.commons.httpclient.params.HttpClientParams httpClientParams)
Deprecated.
|
void |
setReadTimeout(int timeout)
Deprecated.
|
void |
setRetryHandler(org.apache.commons.httpclient.HttpMethodRetryHandler handler)
Deprecated.
|
addFetcherEventListener, combineFeeds, fireEvent, fireEvent, fireEvent, fireEvent, getUserAgent, handleErrorCodes, isAllowDoctypes, isPreserveWireFeed, isUsingDeltaEncoding, removeFetcherEventListener, setAllowDoctypes, setPreserveWireFeed, setUserAgent, setUsingDeltaEncoding, throw4XXError, throwAuthenticationError
public HttpClientFeedFetcher()
public HttpClientFeedFetcher(FeedFetcherCache cache)
public HttpClientFeedFetcher(FeedFetcherCache cache, HttpClientFeedFetcher.CredentialSupplier credentialSupplier)
public SyndFeed retrieveFeed(URL url) throws IllegalArgumentException, IOException, FeedException, FetcherException
FeedFetcher
url
- A non-null URL of a RSS/Atom feed to retrieveSyndFeed
objectIllegalArgumentException
- if the URL is null;IOException
- if a TCP error occursFeedException
- if the feed is not validFetcherException
- if a HTTP error occurredpublic SyndFeed retrieveFeed(String userAgent, URL feedUrl) throws IllegalArgumentException, IOException, FeedException, FetcherException
public void setRetryHandler(org.apache.commons.httpclient.HttpMethodRetryHandler handler)
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)
public HttpClientFeedFetcher.CredentialSupplier getCredentialSupplier()
public void setFeedInfoCache(FeedFetcherCache feedInfoCache)
public FeedFetcherCache getFeedInfoCache()
public void setHttpClientMethodCallback(HttpClientFeedFetcher.HttpClientMethodCallbackIntf httpClientMethodCallback)
public HttpClientFeedFetcher.HttpClientMethodCallbackIntf getHttpClientMethodCallback()
public void setHttpClientParams(org.apache.commons.httpclient.params.HttpClientParams httpClientParams)
public org.apache.commons.httpclient.params.HttpClientParams getHttpClientParams()
public void setReadTimeout(int timeout)
public int getReadTimeout()
Copyright © 2016. All rights reserved.