public interface ISpoiledReferenceStrategizer
Decides which strategy to adopt for a given reference with a bad state. Those can either be deleted (asking the committer to remove them from a target repository), they can be ignored (no action is taken), or graced (give is one chance to recover on a subsequent run).
A "bad" state is any state but NEW
, MODIFIED
,
and UNMODIFIED
. These statuses never have to be resolved.
A complete list of statuses can be obtained from CrawlState
or a subclass.
In addition to "good" states, it is possible for some states to be temporary and/or to be specific to some collectors, and to never be passed to this class.
Modifier and Type | Method and Description |
---|---|
SpoiledReferenceStrategy |
resolveSpoiledReferenceStrategy(String reference,
CrawlState state)
Establish which spoiled reference strategy to adopt.
|
SpoiledReferenceStrategy resolveSpoiledReferenceStrategy(String reference, CrawlState state)
reference
- a document referencestate
- the reference crawl state to evaluateCopyright © 2014–2023 Norconex Inc.. All rights reserved.