Package org.webharvest.runtime
Class Scraper
- java.lang.Object
-
- org.webharvest.runtime.Scraper
-
- All Implemented Interfaces:
WebScraper
public class Scraper extends Object implements WebScraper
Basic runtime class.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(DynamicScopeContext context)
void
informListenersAboutError(Exception e)
Inform all scraper listeners that an error has occured during scraper execution.void
onExecutionFinished(ScraperExecutionEndEvent event)
Logs information about time of Scraper's execution onScraperExecutionEndEvent
.void
onExecutionStopped(ScraperExecutionStoppedEvent event)
Logs information that Scraper's execution has been stopped.
-
-
-
Method Detail
-
execute
public void execute(DynamicScopeContext context)
- Specified by:
execute
in interfaceWebScraper
-
onExecutionStopped
public void onExecutionStopped(ScraperExecutionStoppedEvent event)
Logs information that Scraper's execution has been stopped.- Parameters:
event
- an instance ofScraperExecutionStoppedEvent
-
onExecutionFinished
public void onExecutionFinished(ScraperExecutionEndEvent event)
Logs information about time of Scraper's execution onScraperExecutionEndEvent
.- Parameters:
event
- an instance ofScraperExecutionEndEvent
-
informListenersAboutError
public void informListenersAboutError(Exception e)
Inform all scraper listeners that an error has occured during scraper execution.- Specified by:
informListenersAboutError
in interfaceWebScraper
-
-