de.rw7.htmltools
Class LinkVerify
java.lang.Object
|
+--de.rw7.htmltools.LinkVerify
- All Implemented Interfaces:
- LinkFrontend
- public class LinkVerify
- extends java.lang.Object
- implements LinkFrontend
| Method Summary |
static java.net.URL |
convert(java.lang.String s)
Parses an incomplete URL. |
static void |
main(java.lang.String[] args)
The public main method to invoke the LinkVerifier from command line. |
void |
onAbsent(LinkTag tag)
Notifies the frontend that an url is found to be broken. |
void |
onEnd()
Notifies the frontend, that the spider has terminated itself normally. |
void |
onLookup(LinkTag tag, int thread)
Notifies the frontend whenever a url is getting checked. |
void |
onTarget(LinkTarget target)
Notifies the frontend, that a target frame name changed it's state. |
void |
onWaiting(int thread)
Notifies the Frontend, that a spider thread is waiting because lack of work. |
void |
runVerify(java.lang.String root, boolean externals, int nthreads)
|
| Methods inherited from class java.lang.Object |
<clinit>, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
spider
LinkSpider spider
targets
private java.util.Vector targets
LinkVerify
public LinkVerify()
runVerify
public void runVerify(java.lang.String root,
boolean externals,
int nthreads)
onLookup
public void onLookup(LinkTag tag,
int thread)
- Description copied from interface:
LinkFrontend
- Notifies the frontend whenever a url is getting checked.
-
- Specified by:
onLookup in interface LinkFrontend
- Following copied from interface:
de.rw7.htmltools.LinkFrontend
-
- Parameters:
tag - the url getting checked.
thread - the thread which processes this url.
onWaiting
public void onWaiting(int thread)
- Description copied from interface:
LinkFrontend
- Notifies the Frontend, that a spider thread is waiting because lack of work.
-
- Specified by:
onWaiting in interface LinkFrontend
- Following copied from interface:
de.rw7.htmltools.LinkFrontend
-
- Parameters:
thread - the thread waiting.
onAbsent
public void onAbsent(LinkTag tag)
- Description copied from interface:
LinkFrontend
- Notifies the frontend that an url is found to be broken.
-
- Specified by:
onAbsent in interface LinkFrontend
- Following copied from interface:
de.rw7.htmltools.LinkFrontend
-
- Parameters:
tag - the invalid url
onTarget
public void onTarget(LinkTarget target)
- Description copied from interface:
LinkFrontend
- Notifies the frontend, that a target frame name changed it's state.
-
- Specified by:
onTarget in interface LinkFrontend
- Following copied from interface:
de.rw7.htmltools.LinkFrontend
-
- Parameters:
target - the target changed
onEnd
public void onEnd()
- Description copied from interface:
LinkFrontend
- Notifies the frontend, that the spider has terminated itself normally. Not called, when the spider is aborted via stop.
-
- Specified by:
onEnd in interface LinkFrontend
- Following copied from interface:
de.rw7.htmltools.LinkFrontend
-
- See Also:
LinkSpider.stop()
main
public static void main(java.lang.String[] args)
- The public main method to invoke the LinkVerifier from command line. If invoked this way, the LinkVerifier will exit the JVM after closing the main window.
convert
public static java.net.URL convert(java.lang.String s)
throws java.net.MalformedURLException
- Parses an incomplete URL. Used for user-typed URLS only.