|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.module.Module
org.mmbase.module.ProcessorModule
org.mmbase.module.LinkChecker
The linkChecker module detects broken urls in the urls builder and the jumpers builder.
If the linkchecker module is active it will at start up (5 minutes after the MMBase initialisation)
and start perfoming checks.
This wil only happend once every time time MMBase has been started.
For the LinckChecker to work the sendmail modules has to be configured and has to be active.
| Constructor Summary | |
LinkChecker()
|
|
| Method Summary | |
protected boolean |
checkUrl(java.lang.String url)
Checks if an url exists. |
protected void |
checkUrls(java.lang.String builderName,
java.lang.String fieldName,
java.lang.StringBuffer data)
Checks if the urls in a specified builder exist. |
java.lang.String |
getModuleInfo()
provide some info on the module |
void |
init()
Initializes the module. Init must be overridden to read the environment variables it needs. This method is called by Module.startModule(), which makes sure it is not called
more than once. You should not call init() directly, call startModule() instead. |
void |
run()
|
| Methods inherited from class org.mmbase.module.ProcessorModule |
cacheCheck, getList, getListBuilder, getNodeList, onload, process, reload, replace, replace, unload |
| Methods inherited from class org.mmbase.module.Module |
getInitParameter, getInitParameters, getMaintainer, getMimeType, getMimeTypeFile, getModule, getModule, getModules, getName, getProperties, getProperty, getVersion, hasStarted, loadModulesFromDisk, maintainance, setInitParameter, setMaintainer, setName, setVersion, shutdown, shutdownModules, startModule, startModules, state |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LinkChecker()
| Method Detail |
public void init()
ProcessorModuleModule.startModule(), which makes sure it is not called
more than once. You should not call init() directly, call startModule() instead.
init in class ProcessorModulepublic java.lang.String getModuleInfo()
Module
getModuleInfo in class Modulepublic void run()
run in interface java.lang.Runnable
protected void checkUrls(java.lang.String builderName,
java.lang.String fieldName,
java.lang.StringBuffer data)
builderName - the builder to checkfieldName - the fieldname of the url to checkdata - the StringBuffer to append error information to
protected boolean checkUrl(java.lang.String url)
throws java.net.MalformedURLException,
java.io.IOException
url - the url to check
false if the url does not exist, true if the url exists
java.net.MalformedURLException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||