public class CrawlerContext extends Object
| Constructor and Description |
|---|
CrawlerContext(EmbeddedBrowser browser,
CrawljaxConfiguration config,
javax.inject.Provider<CrawlSession> sessionProvider,
ExitNotifier exitNotifier) |
| Modifier and Type | Method and Description |
|---|---|
EmbeddedBrowser |
getBrowser() |
CrawljaxConfiguration |
getConfig() |
StateVertex |
getCurrentState() |
CrawlSession |
getSession() |
void |
stop()
Tells Crawljax to stop with Exit status
ExitNotifier.ExitStatus.STOPPED. |
@Inject public CrawlerContext(EmbeddedBrowser browser, CrawljaxConfiguration config, javax.inject.Provider<CrawlSession> sessionProvider, ExitNotifier exitNotifier)
public EmbeddedBrowser getBrowser()
EmbeddedBrowser that caused the given Plugin to fire.public CrawlSession getSession()
CrawlSessionpublic CrawljaxConfiguration getConfig()
CrawljaxConfiguration for this crawl.public void stop()
ExitNotifier.ExitStatus.STOPPED. This is equivalent to
calling CrawljaxRunner.stop().public StateVertex getCurrentState()
StateVertex or null when the Crawler isn't
initialized yet.Copyright © 2007-2013. All Rights Reserved.