public interface ScraperStatusListener
Modifier and Type | Method and Description |
---|---|
void |
onCurrentUrlChanged(java.lang.String currentUrl)
Notifies about a change on the currently being scanned URL
|
void |
onFinishedScanningUrl(java.lang.String currentUrl,
int scannedLinks)
Notifies about the end of the scanning process on an URL
|
void |
onNewLinkFound(java.lang.String href,
int totalLinks)
Notifies about a new link found during the scan
|
void |
onScanFinished()
Notifies the end of the scanning process
|
void |
onUrlError(java.lang.String currentUrl,
java.lang.String message)
Notifies about an error scanning an URL
|
void |
onWaitStatusChanged(boolean b)
Notifies a change on the scanning status
|
void onCurrentUrlChanged(java.lang.String currentUrl)
currentUrl
- Current URL being scannedvoid onUrlError(java.lang.String currentUrl, java.lang.String message)
currentUrl
- Current URL being scannedmessage
- Error messagevoid onNewLinkFound(java.lang.String href, int totalLinks)
href
- URL of the found linktotalLinks
- Total number of links foundvoid onFinishedScanningUrl(java.lang.String currentUrl, int scannedLinks)
currentUrl
- URL that has been scannedscannedLinks
- Total number of scanned linksvoid onWaitStatusChanged(boolean b)
b
- True if the scraper is working, false if it is waitingvoid onScanFinished()