public class PageFetcher extends Configurable
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.http.impl.conn.PoolingClientConnectionManager |
connectionManager |
protected IdleConnectionMonitorThread |
connectionMonitorThread |
protected org.apache.http.impl.client.DefaultHttpClient |
httpClient |
protected long |
lastFetchTime |
protected static org.apache.log4j.Logger |
logger |
protected Object |
mutex |
config| Constructor and Description |
|---|
PageFetcher(CrawlConfig config) |
| Modifier and Type | Method and Description |
|---|---|
PageFetchResult |
fetchHeader(WebURL webUrl) |
org.apache.http.client.HttpClient |
getHttpClient() |
void |
shutDown() |
getConfigprotected static final org.apache.log4j.Logger logger
protected org.apache.http.impl.conn.PoolingClientConnectionManager connectionManager
protected org.apache.http.impl.client.DefaultHttpClient httpClient
protected final Object mutex
protected long lastFetchTime
protected IdleConnectionMonitorThread connectionMonitorThread
public PageFetcher(CrawlConfig config)
public PageFetchResult fetchHeader(WebURL webUrl)
public void shutDown()
public org.apache.http.client.HttpClient getHttpClient()
Copyright © 2013. All Rights Reserved.