All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface hplb.xml.util.HtmlObserver

public interface HtmlObserver
A callback interface used in conjunction with UrlScanner. Allows actions to be taken whenever the scanner finds a URL in an HTML document. The scanner knows about most HTML 4.0 elements which can contain URLs. Can be used, for example, to implement robot code which crawls a hypertext graph. This interface is similar to Jeff Poskanzer's Acme.HtmlObserver.

Author:
Anders Kristensen
See Also:
HtmlScanner

Method Index

 o gotAHref(String, URL, Object)
Invoked when the scanner finds an <a href=""> URL.
 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.

Methods

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

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

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

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

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


All Packages  Class Hierarchy  This Package  Previous  Next  Index