Class GenericUrlScopeResolverConfig
java.lang.Object
com.norconex.crawler.web.doc.operations.scope.impl.GenericUrlScopeResolverConfig
Configuration for GenericUrlScopeResolver.
- Since:
- 2.3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()booleanWhether sub-domains are considered to be the same as a URL domain.booleanWhether the crawler should always stay on the same domain name as the domain for each URL specified as a start URL.booleanWhether the crawler should always stay on the same port as the port for each URL specified as a start URL.booleanWhether the crawler should always stay on the same protocol as the protocol for each URL specified as a start URL.booleanWhether to limit crawling to entries found in an existing website sitemap (do not go deeper).setIncludeSubdomains(boolean includeSubdomains) Whether sub-domains are considered to be the same as a URL domain.setStayOnDomain(boolean stayOnDomain) Whether the crawler should always stay on the same domain name as the domain for each URL specified as a start URL.setStayOnPort(boolean stayOnPort) Whether the crawler should always stay on the same port as the port for each URL specified as a start URL.setStayOnProtocol(boolean stayOnProtocol) Whether the crawler should always stay on the same protocol as the protocol for each URL specified as a start URL.setStayOnSitemap(boolean stayOnSitemap) Whether to limit crawling to entries found in an existing website sitemap (do not go deeper).toString()
-
Constructor Details
-
GenericUrlScopeResolverConfig
public GenericUrlScopeResolverConfig()
-
-
Method Details
-
isStayOnDomain
public boolean isStayOnDomain()Whether the crawler should always stay on the same domain name as the domain for each URL specified as a start URL. By default (false) the crawler will try follow any discovered links not otherwise rejected by other settings (like regular filtering rules you may have). -
isIncludeSubdomains
public boolean isIncludeSubdomains()Whether sub-domains are considered to be the same as a URL domain. Only applicable when "stayOnDomain" istrue.- Since:
- 2.9.0
-
isStayOnPort
public boolean isStayOnPort()Whether the crawler should always stay on the same port as the port for each URL specified as a start URL. By default (false) the crawler will try follow any discovered links not otherwise rejected by other settings (like regular filtering rules you may have). -
isStayOnProtocol
public boolean isStayOnProtocol()Whether the crawler should always stay on the same protocol as the protocol for each URL specified as a start URL. By default (false) the crawler will try follow any discovered links not otherwise rejected by other settings (like regular filtering rules you may have). -
isStayOnSitemap
public boolean isStayOnSitemap()Whether to limit crawling to entries found in an existing website sitemap (do not go deeper). Only applies if a sitemap is present for a website. This option is similar to specifying a sitemap start URL with amaxDepthof1with the difference that when used with regular start URLs and no sitemap is detected, it will crawl the corresponding website as if this option was set tofalse. Does not apply if sitemap resolution has been disabled in your configuration. Note that ifasyncistrue, you may get a few soft rejections until they are identified in the sitemap. -
setStayOnDomain
Whether the crawler should always stay on the same domain name as the domain for each URL specified as a start URL. By default (false) the crawler will try follow any discovered links not otherwise rejected by other settings (like regular filtering rules you may have).- Returns:
this.
-
setIncludeSubdomains
Whether sub-domains are considered to be the same as a URL domain. Only applicable when "stayOnDomain" istrue.- Returns:
this.- Since:
- 2.9.0
-
setStayOnPort
Whether the crawler should always stay on the same port as the port for each URL specified as a start URL. By default (false) the crawler will try follow any discovered links not otherwise rejected by other settings (like regular filtering rules you may have).- Returns:
this.
-
setStayOnProtocol
Whether the crawler should always stay on the same protocol as the protocol for each URL specified as a start URL. By default (false) the crawler will try follow any discovered links not otherwise rejected by other settings (like regular filtering rules you may have).- Returns:
this.
-
setStayOnSitemap
Whether to limit crawling to entries found in an existing website sitemap (do not go deeper). Only applies if a sitemap is present for a website. This option is similar to specifying a sitemap start URL with amaxDepthof1with the difference that when used with regular start URLs and no sitemap is detected, it will crawl the corresponding website as if this option was set tofalse. Does not apply if sitemap resolution has been disabled in your configuration. Note that ifasyncistrue, you may get a few soft rejections until they are identified in the sitemap.- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-