org.erowid.sperowider.modelreporting
Class HtmlGeneratingSperowiderModelReporter

java.lang.Object
  extended byorg.erowid.sperowider.modelreporting.HtmlGeneratingSperowiderModelReporter
All Implemented Interfaces:
IInitializableObject, ISperowiderModelReporter

public class HtmlGeneratingSperowiderModelReporter
extends Object
implements ISperowiderModelReporter, IInitializableObject

Logs to a set of summary files. Not very useful currently.

Version:
: $Header: /cvsroot/sperowider/SPEROWIDER_MODULE/javasource/org/erowid/sperowider/modelreporting/HtmlGeneratingSperowiderModelReporter.java,v 1.3 2005/01/15 23:26:04 gurustu Exp $
Author:
: $Author: gurustu $

Constructor Summary
HtmlGeneratingSperowiderModelReporter()
           
 
Method Summary
 void init(Element configNode)
          Initializes the location of the files.
 void reportInvalidUrlFound(String url, int httpCode, String httpMessage)
          Adds a line to the invalid URL file.
 void reportMapUrlToFilename(String url, String fileName)
          Does nothing
 void reportMapUrlToRealUrl(String url, String realUrl)
          Does nothing
 void reportUrlFound(String sourceUrl, String foundUrl, String queueMessage)
          Does nothing
 void reportUrlPoppedFromQueue(String url)
          Does nothing
 void start()
          Opens files, adds headers.
 void stop()
          Adds footers, closes files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlGeneratingSperowiderModelReporter

public HtmlGeneratingSperowiderModelReporter()
Method Detail

reportInvalidUrlFound

public void reportInvalidUrlFound(String url,
                                  int httpCode,
                                  String httpMessage)
Adds a line to the invalid URL file.

Specified by:
reportInvalidUrlFound in interface ISperowiderModelReporter

reportMapUrlToFilename

public void reportMapUrlToFilename(String url,
                                   String fileName)
Does nothing

Specified by:
reportMapUrlToFilename in interface ISperowiderModelReporter

reportMapUrlToRealUrl

public void reportMapUrlToRealUrl(String url,
                                  String realUrl)
Does nothing

Specified by:
reportMapUrlToRealUrl in interface ISperowiderModelReporter

reportUrlFound

public void reportUrlFound(String sourceUrl,
                           String foundUrl,
                           String queueMessage)
Does nothing

Specified by:
reportUrlFound in interface ISperowiderModelReporter

reportUrlPoppedFromQueue

public void reportUrlPoppedFromQueue(String url)
Does nothing

Specified by:
reportUrlPoppedFromQueue in interface ISperowiderModelReporter

start

public void start()
Opens files, adds headers.

Specified by:
start in interface ISperowiderModelReporter

stop

public void stop()
Adds footers, closes files.

Specified by:
stop in interface ISperowiderModelReporter

init

public void init(Element configNode)
          throws SperowiderInstantiationException
Initializes the location of the files.

Specified by:
init in interface IInitializableObject
Throws:
SperowiderInstantiationException

spero logo small Sperowider is
© 2005 Erowid.org