Class ExternalGeoLocationDecideRule

All Implemented Interfaces:
Serializable, org.archive.spring.HasKeyedProperties

public class ExternalGeoLocationDecideRule
extends PredicatedDecideRule
A rule that can be configured to take alternate implementations of the ExternalGeoLocationInterface. If no implementation specified, or none found, returns configured decision. If host in URI has been resolved checks CrawlHost for the country code determination. If country code is not present, does country lookup, and saves the country code to CrawlHost for future consultation. If country code is present in CrawlHost, compares it against the configured code. Note that if a host's IP address changes during the crawl, we still consider the associated hostname to be in the country of its original IP address.
Author:
Igor Ranitovic
See Also:
Serialized Form