All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class hplb.xml.util.UrlScanner

java.lang.Object
   |
   +----hplb.xml.util.UrlScanner

public class UrlScanner
extends Object
implements HtmlObserver
Scans an HTML Web object for embedded link and prints them on stdout. Usage:
  java hplb.www.client.UrlScan [-t] [-v] [-h proxy-host] [-p proxy-port] URL
  where -t means test validity of embedded URLs and
        -v means be verbose
 

Author:
Anders Kristensen

Constructor Index

 o UrlScanner()

Method Index

 o gotAHref(String, URL, Object)
 o gotAreaHref(String, URL, Object)
Invoked when the scanner finds a <area href=""> URL.
 o gotBaseHref(String, URL, Object)
Invoked when the scanner finds a <base href=""> URL.
 o gotFrameSrc(String, URL, Object)
Invoked when the scanner finds an <frame src=""> URL.
 o gotImgSrc(String, URL, Object)
Invoked when the scanner finds an <img src=""> URL.
 o main(String[])
 o panic(String)
 o testLink(URL)
 o usage()

Constructors

 o UrlScanner
 public UrlScanner()

Methods

 o usage
 public static void usage()
 o main
 public static void main(String args[]) throws Exception
 o panic
 public static void panic(String reason)
 o gotAHref
 public void gotAHref(String urlStr,
                      URL contextUrl,
                      Object data)
 o gotImgSrc
 public void gotImgSrc(String urlStr,
                       URL contextUrl,
                       Object data)
Invoked when the scanner finds an <img src=""> URL.

 o gotBaseHref
 public void gotBaseHref(String urlStr,
                         URL contextUrl,
                         Object data)
Invoked when the scanner finds a <base href=""> URL.

 o gotAreaHref
 public void gotAreaHref(String urlStr,
                         URL contextUrl,
                         Object data)
Invoked when the scanner finds a <area href=""> URL.

 o gotFrameSrc
 public void gotFrameSrc(String urlStr,
                         URL contextUrl,
                         Object data)
Invoked when the scanner finds an <frame src=""> URL.

 o testLink
 public static void testLink(URL url) throws IOException

All Packages  Class Hierarchy  This Package  Previous  Next  Index