public interface IHttpClientFactory
HttpClient
to be used for all
HTTP requests this crawler will make. If implementing
CloseableHttpClient
the crawler will take care of closing
it properly when crawling ends.
Implementors also implementing IXMLConfigurable
must name their XML
tag httpClientFactory
to ensure it gets loaded properly.Modifier and Type | Method and Description |
---|---|
org.apache.http.client.HttpClient |
createHTTPClient(String userAgent)
Initializes the HTTP Client used for crawling.
|
org.apache.http.client.HttpClient createHTTPClient(String userAgent)
userAgent
- the HTTP request "User-Agent" header valueCopyright © 2009–2021 Norconex Inc.. All rights reserved.