public static class SourceOptionsWebCrawl.Builder
extends java.lang.Object
Constructor and Description |
---|
SourceOptionsWebCrawl.Builder()
Instantiates a new builder.
|
SourceOptionsWebCrawl.Builder(java.lang.String url)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
SourceOptionsWebCrawl.Builder |
addBlacklist(java.lang.String blacklist)
Adds an blacklist to blacklist.
|
SourceOptionsWebCrawl.Builder |
allowUntrustedCertificate(java.lang.Boolean allowUntrustedCertificate)
Set the allowUntrustedCertificate.
|
SourceOptionsWebCrawl.Builder |
blacklist(java.util.List<java.lang.String> blacklist)
Set the blacklist.
|
SourceOptionsWebCrawl |
build()
Builds a SourceOptionsWebCrawl.
|
SourceOptionsWebCrawl.Builder |
crawlSpeed(java.lang.String crawlSpeed)
Set the crawlSpeed.
|
SourceOptionsWebCrawl.Builder |
limitToStartingHosts(java.lang.Boolean limitToStartingHosts)
Set the limitToStartingHosts.
|
SourceOptionsWebCrawl.Builder |
maximumHops(long maximumHops)
Set the maximumHops.
|
SourceOptionsWebCrawl.Builder |
overrideRobotsTxt(java.lang.Boolean overrideRobotsTxt)
Set the overrideRobotsTxt.
|
SourceOptionsWebCrawl.Builder |
requestTimeout(long requestTimeout)
Set the requestTimeout.
|
SourceOptionsWebCrawl.Builder |
url(java.lang.String url)
Set the url.
|
public SourceOptionsWebCrawl.Builder()
public SourceOptionsWebCrawl.Builder(java.lang.String url)
url
- the urlpublic SourceOptionsWebCrawl build()
public SourceOptionsWebCrawl.Builder addBlacklist(java.lang.String blacklist)
blacklist
- the new blacklistpublic SourceOptionsWebCrawl.Builder url(java.lang.String url)
url
- the urlpublic SourceOptionsWebCrawl.Builder limitToStartingHosts(java.lang.Boolean limitToStartingHosts)
limitToStartingHosts
- the limitToStartingHostspublic SourceOptionsWebCrawl.Builder crawlSpeed(java.lang.String crawlSpeed)
crawlSpeed
- the crawlSpeedpublic SourceOptionsWebCrawl.Builder allowUntrustedCertificate(java.lang.Boolean allowUntrustedCertificate)
allowUntrustedCertificate
- the allowUntrustedCertificatepublic SourceOptionsWebCrawl.Builder maximumHops(long maximumHops)
maximumHops
- the maximumHopspublic SourceOptionsWebCrawl.Builder requestTimeout(long requestTimeout)
requestTimeout
- the requestTimeoutpublic SourceOptionsWebCrawl.Builder overrideRobotsTxt(java.lang.Boolean overrideRobotsTxt)
overrideRobotsTxt
- the overrideRobotsTxtpublic SourceOptionsWebCrawl.Builder blacklist(java.util.List<java.lang.String> blacklist)
blacklist
- the blacklist