public interface Fetcher extends Runnable
Modifier and Type | Method and Description |
---|---|
String |
archiveUrl()
This is the identifier of the forum necessary to balance requests for
each forum.
|
void |
fault(String msg)
This is called instead of run if something below the HTTP layer goes
wrong.
|
void |
run()
The Runnable is called once the input stream and code is set.
|
void |
setInputStream(InputStream in)
Used by HarvestRunner to give the job access to the fetched
result.
|
void |
setStatusCode(int code)
Used by HarvestRunner to set the return code of the result
for error handling.
|
String |
url()
The actual Url to fetch.
|
String archiveUrl()
void setInputStream(InputStream in)
in
- void setStatusCode(int code)
code
- void run()