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

Method main

src/java/org/apache/nutch/util/URLUtil.java:465–478  ·  view source on GitHub ↗

For testing

(String[] args)

Source from the content-addressed store, hash-verified

463
464 /** For testing */
465 public static void main(String[] args) {
466
467 if (args.length != 1) {
468 System.err.println("Usage : URLUtil <url>");
469 return;
470 }
471
472 String url = args[0];
473 try {
474 System.out.println(URLUtil.getDomainName(new URL(url)));
475 } catch (MalformedURLException ex) {
476 System.err.println(ex.getMessage());
477 }
478 }
479}

Callers

nothing calls this directly

Calls 2

getDomainNameMethod · 0.95
getMessageMethod · 0.45

Tested by

no test coverage detected