Class SourceOptionsWebCrawl.Builder
java.lang.Object
com.ibm.watson.discovery.v1.model.SourceOptionsWebCrawl.Builder
- Enclosing class:
- SourceOptionsWebCrawl
public static class SourceOptionsWebCrawl.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description SourceOptionsWebCrawl.BuilderaddBlacklist(String blacklist)Adds an blacklist to blacklist.SourceOptionsWebCrawl.BuilderallowUntrustedCertificate(Boolean allowUntrustedCertificate)Set the allowUntrustedCertificate.SourceOptionsWebCrawl.Builderblacklist(List<String> blacklist)Set the blacklist.SourceOptionsWebCrawlbuild()Builds a SourceOptionsWebCrawl.SourceOptionsWebCrawl.BuildercrawlSpeed(String crawlSpeed)Set the crawlSpeed.SourceOptionsWebCrawl.BuilderlimitToStartingHosts(Boolean limitToStartingHosts)Set the limitToStartingHosts.SourceOptionsWebCrawl.BuildermaximumHops(long maximumHops)Set the maximumHops.SourceOptionsWebCrawl.BuilderoverrideRobotsTxt(Boolean overrideRobotsTxt)Set the overrideRobotsTxt.SourceOptionsWebCrawl.BuilderrequestTimeout(long requestTimeout)Set the requestTimeout.SourceOptionsWebCrawl.Builderurl(String url)Set the url.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
url- the url
-
-
Method Details
-
build
Builds a SourceOptionsWebCrawl.- Returns:
- the new SourceOptionsWebCrawl instance
-
addBlacklist
Adds an blacklist to blacklist.- Parameters:
blacklist- the new blacklist- Returns:
- the SourceOptionsWebCrawl builder
-
url
Set the url.- Parameters:
url- the url- Returns:
- the SourceOptionsWebCrawl builder
-
limitToStartingHosts
Set the limitToStartingHosts.- Parameters:
limitToStartingHosts- the limitToStartingHosts- Returns:
- the SourceOptionsWebCrawl builder
-
crawlSpeed
Set the crawlSpeed.- Parameters:
crawlSpeed- the crawlSpeed- Returns:
- the SourceOptionsWebCrawl builder
-
allowUntrustedCertificate
Set the allowUntrustedCertificate.- Parameters:
allowUntrustedCertificate- the allowUntrustedCertificate- Returns:
- the SourceOptionsWebCrawl builder
-
maximumHops
Set the maximumHops.- Parameters:
maximumHops- the maximumHops- Returns:
- the SourceOptionsWebCrawl builder
-
requestTimeout
Set the requestTimeout.- Parameters:
requestTimeout- the requestTimeout- Returns:
- the SourceOptionsWebCrawl builder
-
overrideRobotsTxt
Set the overrideRobotsTxt.- Parameters:
overrideRobotsTxt- the overrideRobotsTxt- Returns:
- the SourceOptionsWebCrawl builder
-
blacklist
Set the blacklist. Existing blacklist will be replaced.- Parameters:
blacklist- the blacklist- Returns:
- the SourceOptionsWebCrawl builder
-