net.sf.jaxme.js.util
Class LinkChecker

java.lang.Object
  extended bynet.sf.jaxme.js.util.LinkChecker
Direct Known Subclasses:
AntLinkChecker.MyLinkChecker

public class LinkChecker
extends java.lang.Object

Basic implementation of a link checker for the JaxMe HTML distribution.

Author:
Jochen Wiedmann

Constructor Summary
LinkChecker()
           
 
Method Summary
protected  void addEvent(net.sf.jaxme.js.util.LinkChecker.Event pEvent)
           
 void addURL(net.sf.jaxme.js.util.LinkChecker.CheckedURL pURL)
           
 void addURL(java.net.URL pURL)
           
 void addURL(java.net.URL pURL, java.io.InputStream pStream)
           
 Logger getLogger()
           
 java.lang.String getProxyHost()
           
 java.lang.String getProxyPort()
           
 int getSeverity()
           
protected  void handleError(java.net.URL pURL, int pPos, java.lang.String pMsg)
           
protected  void handleRefError(java.net.URL pURL, java.net.URL pRefURL, int pPos, java.lang.String pMsg)
           
protected  void handleWarning(java.net.URL pURL, int pPos, java.lang.String pMsg)
           
static void main(java.lang.String[] args)
           
 void parse()
           
 void parse(net.sf.jaxme.js.util.LinkChecker.CheckedURL pURL)
           
 void setLogger(Logger pLogger)
           
 void setProxy(java.lang.String pProxy)
           
 void setProxyHost(java.lang.String pHost)
           
 void setProxyPort(java.lang.String pPort)
           
 void setSeverity(java.lang.String pSeverity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkChecker

public LinkChecker()
Method Detail

addEvent

protected void addEvent(net.sf.jaxme.js.util.LinkChecker.Event pEvent)

handleError

protected void handleError(java.net.URL pURL,
                           int pPos,
                           java.lang.String pMsg)

handleRefError

protected void handleRefError(java.net.URL pURL,
                              java.net.URL pRefURL,
                              int pPos,
                              java.lang.String pMsg)

handleWarning

protected void handleWarning(java.net.URL pURL,
                             int pPos,
                             java.lang.String pMsg)

getLogger

public Logger getLogger()

setLogger

public void setLogger(Logger pLogger)

setSeverity

public void setSeverity(java.lang.String pSeverity)

getSeverity

public int getSeverity()

setProxy

public void setProxy(java.lang.String pProxy)

setProxyHost

public void setProxyHost(java.lang.String pHost)

getProxyHost

public java.lang.String getProxyHost()

setProxyPort

public void setProxyPort(java.lang.String pPort)

getProxyPort

public java.lang.String getProxyPort()

addURL

public void addURL(java.net.URL pURL,
                   java.io.InputStream pStream)

addURL

public void addURL(java.net.URL pURL)

addURL

public void addURL(net.sf.jaxme.js.util.LinkChecker.CheckedURL pURL)

parse

public void parse(net.sf.jaxme.js.util.LinkChecker.CheckedURL pURL)
           throws java.io.IOException
Throws:
java.io.IOException

parse

public void parse()

main

public static void main(java.lang.String[] args)