public class Plugins extends Object
| Constructor and Description |
|---|
Plugins(List<? extends Plugin> plugins) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
int |
hashCode() |
static Plugins |
noPlugins() |
com.google.common.collect.ImmutableSet<String> |
pluginNames() |
boolean |
runDomChangeNotifierPlugins(CrawlerContext context,
StateVertex stateBefore,
Eventable event,
StateVertex stateAfter)
Load and run the DomChangeNotifierPlugin.
|
void |
runOnBrowserCreatedPlugins(EmbeddedBrowser newBrowser)
Load and run the OnBrowserCreatedPlugins, this call has been made from the browserpool when a
new browser has been created and ready to be used by the Crawler.
|
void |
runOnFireEventFailedPlugins(CrawlerContext context,
Eventable eventable,
List<Eventable> path)
Load and run the OnFireEventFailedPlugins, this call has been made from the fireEvent when
the event is not fireable.
|
void |
runOnInvriantViolationPlugins(Invariant invariant,
CrawlerContext context)
Run the OnInvariantViolation plugins when an Invariant is violated.
|
void |
runOnNewStatePlugins(CrawlerContext context,
StateVertex newState)
load and run the OnNewStatePlugins.
|
void |
runOnRevisitStatePlugins(CrawlerContext context,
StateVertex currentState)
load and run the onRevisitStateValidator.
|
void |
runOnUrlLoadPlugins(CrawlerContext context)
load and run the OnUrlLoadPlugins.
|
void |
runPostCrawlingPlugins(CrawlSession session,
ExitNotifier.ExitStatus exitReason)
load and run the postCrawlingPlugins.
|
void |
runPreCrawlingPlugins(CrawljaxConfiguration config) |
void |
runPreStateCrawlingPlugins(CrawlerContext context,
com.google.common.collect.ImmutableList<CandidateElement> candidateElements,
StateVertex state)
load and run the PreStateCrawlingPlugins.
|
void |
runProxyServerPlugins(ProxyConfiguration config)
Load and run the proxyServerPlugins.
|
String |
toString() |
public void runOnUrlLoadPlugins(CrawlerContext context)
This method can be called from multiple threads with different CrawlerContext
browser - the embedded browser instance to load in the plugin.public void runOnNewStatePlugins(CrawlerContext context, StateVertex newState)
This method can be called from multiple threads with different CrawlerContext
session - the session to load in the pluginnewState - The new statepublic void runOnInvriantViolationPlugins(Invariant invariant, CrawlerContext context)
invariant - the failed invariantscontext - the session to load in the pluginpublic void runPostCrawlingPlugins(CrawlSession session, ExitNotifier.ExitStatus exitReason)
exitReason - context - the session to load in the pluginpublic void runOnRevisitStatePlugins(CrawlerContext context, StateVertex currentState)
context - the session to load in the plugincurrentState - the state the 'back tracking' operation is currently inpublic void runPreStateCrawlingPlugins(CrawlerContext context, com.google.common.collect.ImmutableList<CandidateElement> candidateElements, StateVertex state)
session - the crawl session.candidateElements - the elements which crawljax is about to crawlstate - The state being violated.public void runProxyServerPlugins(ProxyConfiguration config)
config - The ProxyConfiguration to use.public void runPreCrawlingPlugins(CrawljaxConfiguration config)
public void runOnFireEventFailedPlugins(CrawlerContext context, Eventable eventable, List<Eventable> path)
eventable - the eventable not able to fire.path - the path TO this eventable.public void runOnBrowserCreatedPlugins(EmbeddedBrowser newBrowser)
newBrowser - the new created browser objectpublic boolean runDomChangeNotifierPlugins(CrawlerContext context, StateVertex stateBefore, Eventable event, StateVertex stateAfter)
public com.google.common.collect.ImmutableSet<String> pluginNames()
ImmutableSet of the Plugin#toString() that are installed.Copyright © 2007-2013. All Rights Reserved.