Class HttpFetchClient
- java.lang.Object
-
- com.norconex.collector.http.fetch.HttpFetchClient
-
public class HttpFetchClient extends Object
Fetches HTTP resources, trying all configured http fetchers, defaulting toGenericHttpFetcher
with default configuration if none are defined.- Since:
- 3.0.0
- Author:
- Pascal Essiembre
-
-
Constructor Summary
Constructors Constructor Description HttpFetchClient(CachedStreamFactory streamFactory, List<IHttpFetcher> httpFetchers, int maxRetries, long retryDelay)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IHttpFetchResponse
fetch(CrawlDoc doc, HttpMethod httpMethod)
CachedStreamFactory
getStreamFactory()
-
-
-
Constructor Detail
-
HttpFetchClient
public HttpFetchClient(CachedStreamFactory streamFactory, List<IHttpFetcher> httpFetchers, int maxRetries, long retryDelay)
-
-
Method Detail
-
getStreamFactory
public CachedStreamFactory getStreamFactory()
-
fetch
public IHttpFetchResponse fetch(CrawlDoc doc, HttpMethod httpMethod)
-
-