MCPcopy Create free account
hub / github.com/apache/nutch / isSitemap

Method isSitemap

src/java/org/apache/nutch/net/URLFilters.java:104–111  ·  view source on GitHub ↗

If the page is a sitemap, return true

(WebPage page)

Source from the content-addressed store, hash-verified

102 *
103 * */
104 public static boolean isSitemap(WebPage page) {
105 if (InjectType.SITEMAP_INJECT.getTypeString().equals(
106 Mark.INJECT_MARK.checkMark(page))) {
107 return true;
108 } else {
109 return false;
110 }
111 }
112}

Callers 5

testSitemapInjectMethod · 0.95
mapMethod · 0.95
mapMethod · 0.95
mapMethod · 0.95

Calls 3

getTypeStringMethod · 0.80
checkMarkMethod · 0.80
equalsMethod · 0.45

Tested by 2

testSitemapInjectMethod · 0.76