com.norconex.collector.http.handler
Interface IHttpDocumentFetcher

All Superinterfaces:
Serializable
All Known Implementing Classes:
DefaultDocumentFetcher

public interface IHttpDocumentFetcher
extends Serializable

Fetches the HTTP document and its metadata (HTTP Headers). The document metadata is populated with the HTTP Headers and the document body is saved to the document local file.

Author:
Pascal Essiembre

Method Summary
 CrawlStatus fetchDocument(org.apache.http.impl.client.DefaultHttpClient httpClient, HttpDocument doc)
          Fetches HTTP document and saves it to a local file
 

Method Detail

fetchDocument

CrawlStatus fetchDocument(org.apache.http.impl.client.DefaultHttpClient httpClient,
                          HttpDocument doc)
Fetches HTTP document and saves it to a local file

Parameters:
httpClient - the HTTP client
doc - HttpDocument the document to fetch and save
Returns:
URL status


Copyright © 2009-2013 Norconex Inc.. All Rights Reserved.