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