Class LastModifiedMetadataChecksummer

java.lang.Object
com.norconex.crawler.core.doc.operations.checksum.AbstractMetadataChecksummer<BaseChecksummerConfig>
com.norconex.crawler.web.doc.operations.checksum.impl.LastModifiedMetadataChecksummer
All Implemented Interfaces:
Configurable<BaseChecksummerConfig>, MetadataChecksummer

public class LastModifiedMetadataChecksummer extends AbstractMetadataChecksummer<BaseChecksummerConfig>

Default implementation of MetadataChecksummer for the Norconex Web Crawler which simply returns the exact value of the "Last-Modified" HTTP header field, or null if not present.

You have the option to keep the checksum as a document metadata field. When BaseChecksummerConfig.setKeep(boolean) is true, the checksum will be stored in the target field name specified. If you do not specify any, it stores it under the metadata field name CrawlerDocMetaConstants.CHECKSUM_METADATA.

To use different fields (one or several) to constitute a checksum, you can instead use the GenericMetadataChecksummer.

Since:
2.2.0
See Also: