Class Nx2ResponseExtractor
java.lang.Object
org.apache.maven.search.backend.remoterepository.extractor.ResponseExtractorSupport
org.apache.maven.search.backend.remoterepository.extractor.Nx2ResponseExtractor
- All Implemented Interfaces:
ResponseExtractor
Extractor for Sonatype Nexus2.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Returnstrue
if the name is not empty, not directory special (".."), is not metadata is not signature and is not checksum.int
populateG
(Context context, org.jsoup.nodes.Document document, RecordFactory recordFactory, List<Record> page) Method parsing document out of HTML page like this one: https://repo.maven.apache.org/maven2/org/apache/maven/indexer/int
populateGAV
(Context context, org.jsoup.nodes.Document document, RecordFactory recordFactory, List<Record> page) Method parsing document out of HTML page like this one: https://repo.maven.apache.org/maven2/org/apache/maven/indexer/search-api/7.0.3/Methods inherited from class org.apache.maven.search.backend.remoterepository.extractor.ResponseExtractorSupport
isChecksum, isMetadata, isSignature, populateGA, populateGAVName
-
Constructor Details
-
Nx2ResponseExtractor
public Nx2ResponseExtractor()
-
-
Method Details
-
accept
Description copied from class:ResponseExtractorSupport
Returnstrue
if the name is not empty, not directory special (".."), is not metadata is not signature and is not checksum. Hence, it should be a name of interest.- Overrides:
accept
in classResponseExtractorSupport
-
populateG
public int populateG(Context context, org.jsoup.nodes.Document document, RecordFactory recordFactory, List<Record> page) Description copied from interface:ResponseExtractor
Method parsing document out of HTML page like this one: https://repo.maven.apache.org/maven2/org/apache/maven/indexer/Note: this method is "best effort" and may enlist non-existent As (think nested Gs).
-
populateGAV
public int populateGAV(Context context, org.jsoup.nodes.Document document, RecordFactory recordFactory, List<Record> page) Description copied from interface:ResponseExtractor
Method parsing document out of HTML page like this one: https://repo.maven.apache.org/maven2/org/apache/maven/indexer/search-api/7.0.3/Note: this method is "best effort" and may enlist fake artifacts.
-