Package com.rometools.fetcher.impl
Class HttpClientFeedFetcher
- java.lang.Object
-
- com.rometools.fetcher.impl.AbstractFeedFetcher
-
- com.rometools.fetcher.impl.HttpClientFeedFetcher
-
- All Implemented Interfaces:
FeedFetcher
@Deprecated public class HttpClientFeedFetcher extends AbstractFeedFetcher
Deprecated.HttpClient v3 is known to have some security vulnerabilities! In addition ROME Fetcher will be dropped in the next major version of ROME (version 2). For more information and some migration hints, please have a look at our detailed explanation.- Author:
- Nick Lothian
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceHttpClientFeedFetcher.CredentialSupplierDeprecated.static interfaceHttpClientFeedFetcher.HttpClientMethodCallbackIntfDeprecated.
-
Field Summary
-
Fields inherited from interface com.rometools.fetcher.FeedFetcher
DEFAULT_USER_AGENT
-
-
Constructor Summary
Constructors Constructor Description HttpClientFeedFetcher()Deprecated.HttpClientFeedFetcher(FeedFetcherCache cache)Deprecated.HttpClientFeedFetcher(FeedFetcherCache cache, HttpClientFeedFetcher.CredentialSupplier credentialSupplier)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intgetConnectTimeout()Deprecated.HttpClientFeedFetcher.CredentialSuppliergetCredentialSupplier()Deprecated.FeedFetcherCachegetFeedInfoCache()Deprecated.HttpClientFeedFetcher.HttpClientMethodCallbackIntfgetHttpClientMethodCallback()Deprecated.org.apache.commons.httpclient.params.HttpClientParamsgetHttpClientParams()Deprecated.intgetReadTimeout()Deprecated.SyndFeedretrieveFeed(String userAgent, URL feedUrl)Deprecated.SyndFeedretrieveFeed(URL url)Deprecated.Retrieve a feed over HTTPvoidsetConnectTimeout(int timeout)Deprecated.voidsetCredentialSupplier(HttpClientFeedFetcher.CredentialSupplier credentialSupplier)Deprecated.voidsetCustomRequestHeaders(Map<String,String> customRequestHeaders)Deprecated.Apply any request headers to the HTTP method call.voidsetFeedInfoCache(FeedFetcherCache feedInfoCache)Deprecated.voidsetHttpClientMethodCallback(HttpClientFeedFetcher.HttpClientMethodCallbackIntf httpClientMethodCallback)Deprecated.voidsetHttpClientParams(org.apache.commons.httpclient.params.HttpClientParams httpClientParams)Deprecated.voidsetReadTimeout(int timeout)Deprecated.voidsetRetryHandler(org.apache.commons.httpclient.HttpMethodRetryHandler handler)Deprecated.-
Methods inherited from class com.rometools.fetcher.impl.AbstractFeedFetcher
addFetcherEventListener, combineFeeds, fireEvent, fireEvent, fireEvent, fireEvent, getUserAgent, handleErrorCodes, isAllowDoctypes, isPreserveWireFeed, isUsingDeltaEncoding, removeFetcherEventListener, setAllowDoctypes, setPreserveWireFeed, setUserAgent, setUsingDeltaEncoding, throw4XXError, throwAuthenticationError
-
-
-
-
Constructor Detail
-
HttpClientFeedFetcher
public HttpClientFeedFetcher()
Deprecated.
-
HttpClientFeedFetcher
public HttpClientFeedFetcher(FeedFetcherCache cache)
Deprecated.
-
HttpClientFeedFetcher
public HttpClientFeedFetcher(FeedFetcherCache cache, HttpClientFeedFetcher.CredentialSupplier credentialSupplier)
Deprecated.
-
-
Method Detail
-
retrieveFeed
public SyndFeed retrieveFeed(URL url) throws IllegalArgumentException, IOException, FeedException, FetcherException
Deprecated.Description copied from interface:FeedFetcherRetrieve a feed over HTTP- Parameters:
url- A non-null URL of a RSS/Atom feed to retrieve- Returns:
- A
SyndFeedobject - Throws:
IllegalArgumentException- if the URL is null;IOException- if a TCP error occursFeedException- if the feed is not validFetcherException- if a HTTP error occurred
-
retrieveFeed
public SyndFeed retrieveFeed(String userAgent, URL feedUrl) throws IllegalArgumentException, IOException, FeedException, FetcherException
Deprecated.
-
setRetryHandler
public void setRetryHandler(org.apache.commons.httpclient.HttpMethodRetryHandler handler)
Deprecated.
-
setConnectTimeout
public void setConnectTimeout(int timeout)
Deprecated.- 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()
Deprecated.- Returns:
- The currently used connect timeout for the HttpClient but using the URLConnection method name. Uses the HttpClientParams method getConnectionManagerTimeout instead of getConnectTimeout
-
setCredentialSupplier
public void setCredentialSupplier(HttpClientFeedFetcher.CredentialSupplier credentialSupplier)
Deprecated.
-
getCredentialSupplier
public HttpClientFeedFetcher.CredentialSupplier getCredentialSupplier()
Deprecated.
-
setFeedInfoCache
public void setFeedInfoCache(FeedFetcherCache feedInfoCache)
Deprecated.
-
getFeedInfoCache
public FeedFetcherCache getFeedInfoCache()
Deprecated.
-
setHttpClientMethodCallback
public void setHttpClientMethodCallback(HttpClientFeedFetcher.HttpClientMethodCallbackIntf httpClientMethodCallback)
Deprecated.
-
getHttpClientMethodCallback
public HttpClientFeedFetcher.HttpClientMethodCallbackIntf getHttpClientMethodCallback()
Deprecated.
-
setHttpClientParams
public void setHttpClientParams(org.apache.commons.httpclient.params.HttpClientParams httpClientParams)
Deprecated.
-
getHttpClientParams
public org.apache.commons.httpclient.params.HttpClientParams getHttpClientParams()
Deprecated.
-
setReadTimeout
public void setReadTimeout(int timeout)
Deprecated.
-
getReadTimeout
public int getReadTimeout()
Deprecated.- Returns:
- timeout the read timeout for the URLConnection to a specified timeout, in milliseconds.
-
-