public class OnNSDomainsDecideRule extends org.archive.modules.deciderules.surt.SurtPrefixedDecideRule
Modifier and Type | Field and Description |
---|---|
static String |
NON_VALID_DOMAIN
This is what SurtPrefixSet.prefixFromPlain returns for
a non valid URI.
|
static Pattern |
SURT_FIRSTPART_PATTERN
Pattern that matches the first part of SURT - until ??
|
Constructor and Description |
---|
OnNSDomainsDecideRule()
Constructor for the class OnNSDomainsDecideRule.
|
Modifier and Type | Method and Description |
---|---|
static String |
convertToDomain(String uri)
Convert a URI to its domain.
|
protected void |
myBuildSurtPrefixSet()
Method that rebuilds the SurtPrefixSet to include only
topmost domains - according to the domain definition
in NetarchiveSuite.
|
protected String |
prefixFrom(String uri)
Generate the SURT prefix that matches the domain definition
of NetarchiveSuite.
|
protected void |
readPrefixes()
We override the default readPrefixes, because we want to
make our prefixes.
|
addedSeed, buildSurtPrefixSet, concludedSeedBatch, doCheckpoint, dumpSurtPrefixSet, evaluate, finishCheckpoint, getAlsoCheckVia, getSeeds, getSeedsAsSurtPrefixes, getSurtsDumpFile, getSurtsSource, getSurtsSourceFile, nonseedLine, onApplicationEvent, setAlsoCheckVia, setBeanName, setRecoveryCheckpoint, setSeeds, setSeedsAsSurtPrefixes, setSurtsDumpFile, setSurtsSource, setSurtsSourceFile, startCheckpoint
getDecision, innerDecide, setDecision
public static final String NON_VALID_DOMAIN
public static final Pattern SURT_FIRSTPART_PATTERN
public OnNSDomainsDecideRule()
protected void readPrefixes()
readPrefixes
in class org.archive.modules.deciderules.surt.SurtPrefixedDecideRule
protected void myBuildSurtPrefixSet()
protected String prefixFrom(String uri)
prefixFrom
in class org.archive.modules.deciderules.surt.SurtPrefixedDecideRule
uri
- URL to convert to SURTpublic static String convertToDomain(String uri)
uri
- URL to convert to Top most domain-name according to
NetarchiveSuite definitionCopyright © 2005–2018 The Royal Danish Library, the National Library of France and the Austrian National Library.. All rights reserved.