public static class CrawljaxConfiguration.CrawljaxConfigurationBuilder extends Object
public CrawljaxConfiguration.CrawljaxConfigurationBuilder setBasicAuth(String username, String password)
username - The username for the website.password - The password for the website.CrawljaxConfiguration.CrawljaxConfigurationBuilder for method chaining.public CrawljaxConfiguration.CrawljaxConfigurationBuilder setMaximumStates(int states)
states - The maximum number of states the Crawler should crawl. The default is
unlimited.public CrawljaxConfiguration.CrawljaxConfigurationBuilder setUnlimitedStates()
public CrawljaxConfiguration.CrawljaxConfigurationBuilder setMaximumRunTime(long time, TimeUnit unit)
time - The maximum time the crawler should run. Default is one hour.public CrawljaxConfiguration.CrawljaxConfigurationBuilder setUnlimitedRuntime()
public CrawljaxConfiguration.CrawljaxConfigurationBuilder setMaximumDepth(int depth)
depth - The maximum depth the crawler can reach. The default is 2.public CrawljaxConfiguration.CrawljaxConfigurationBuilder setUnlimitedCrawlDepth()
2.public CrawljaxConfiguration.CrawljaxConfigurationBuilder addPlugin(Plugin... plugins)
You can call this method several times to add multiple plugins
plugins - the plugins you would like to enable.public CrawljaxConfiguration.CrawljaxConfigurationBuilder setProxyConfig(ProxyConfiguration configuration)
configuration - The proxy configuration. Default is ProxyConfiguration.noProxy()public CrawlRules.CrawlRulesBuilder crawlRules()
CrawlRules.CrawlRulesBuilder to define crawling rules.public CrawljaxConfiguration.CrawljaxConfigurationBuilder setBrowserConfig(BrowserConfiguration configuration)
configuration - a custom BrowserConfiguration. The default is a single
EmbeddedBrowser.BrowserType.FIREFOX browser.public CrawljaxConfiguration.CrawljaxConfigurationBuilder setOutputDirectory(File output)
Plugin you might configure. Crawljax itself doesn't
need an output folder but many plug-ins do.output - The output folder. If it does not exist it will be created.IllegalStateException - if the specified file is not writable or exists but isn't a folder.public CrawljaxConfiguration build()
public CrawlController buildControl()
Copyright © 2007-2013. All Rights Reserved.