|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.erowid.sperowider.modelreporting.SperowiderModelReporterHelper
A reporting helper for ISperowiderModel
objects.
Constructor Summary | |
SperowiderModelReporterHelper()
|
Method Summary | |
void |
addSperowiderModelReporter(ISperowiderModelReporter sperowiderModelReporter)
Adds a ISperowiderModelReporter to be delegated to. |
void |
destroy()
Delegates to stopping reporting |
void |
init(Element configNode)
Delegated to by extending classes, this configures what reporters are used by this class. |
void |
reportInvalidUrlFound(String url,
int httpCode,
String httpMessage)
Delegates to child ISperowiderModelReporter objects. |
void |
reportMapUrlToFilename(String url,
String filename)
Delegates to child ISperowiderModelReporter objects. |
void |
reportMapUrlToRealUrl(String url,
String realUrl)
Delegates to child ISperowiderModelReporter objects. |
void |
reportUrlFound(String sourceUrl,
String foundUrl,
String queueMessage)
Delegates to child ISperowiderModelReporter objects. |
void |
reportUrlPoppedFromQueue(String url)
Delegates to child ISperowiderModelReporter objects. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SperowiderModelReporterHelper()
Method Detail |
public void addSperowiderModelReporter(ISperowiderModelReporter sperowiderModelReporter)
ISperowiderModelReporter
to be delegated to.
public void reportUrlFound(String sourceUrl, String foundUrl, String queueMessage)
ISperowiderModelReporter
objects.
public void reportUrlPoppedFromQueue(String url)
ISperowiderModelReporter
objects.
public void reportMapUrlToRealUrl(String url, String realUrl)
ISperowiderModelReporter
objects.
public void reportMapUrlToFilename(String url, String filename)
ISperowiderModelReporter
objects.
public void reportInvalidUrlFound(String url, int httpCode, String httpMessage)
ISperowiderModelReporter
objects.
public void init(Element configNode) throws SperowiderInstantiationException
LoggingSperowiderModelReporter
will be created by default.
Looks for a structure like :
<reporting>
<reporter class-name="some reporter class name" />
<reporter class-name="" />
</reporting>
SperowiderInstantiationException
public void destroy()
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |