Class Spider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDomainAlwaysInScope
(String value, String isregex, String isenabled) Adds a new domain that's always in scope, using the specified value.addedNodes
(String scanid) Returns a list of the names of the nodes added to the Sites tree by the specified scan.allUrls()
Returns a list of unique URLs from the history table based on HTTP messages added by the Spider.Clears the regexes of URLs excluded from the spider scans.Disables all domains that are always in scope.Gets all the domains that are always in scope.Enables all domains that are always in scope.Gets the regexes of URLs excluded from the spider scans.excludeFromScan
(String regex) Adds a regex of URLs that should be excluded from the spider scans.fullResults
(String scanid) This component is optional and therefore the API will only work if it is installedmodifyDomainAlwaysInScope
(String idx, String value, String isregex, String isenabled) Modifies a domain that's always in scope.Gets whether or not a spider process should accept cookies while spidering.Deprecated.Deprecated.This component is optional and therefore the API will only work if it is installedThis component is optional and therefore the API will only work if it is installedGets the maximum number of child nodes (per node) that can be crawled, 0 means no limit.Gets the maximum depth the spider can crawl, 0 if unlimited.This component is optional and therefore the API will only work if it is installedGets the maximum size, in bytes, that a response might have to be parsed.This component is optional and therefore the API will only work if it is installedThis component is optional and therefore the API will only work if it is installedThis component is optional and therefore the API will only work if it is installedThis component is optional and therefore the API will only work if it is installedThis component is optional and therefore the API will only work if it is installedThis component is optional and therefore the API will only work if it is installedThis component is optional and therefore the API will only work if it is installedThis component is optional and therefore the API will only work if it is installedThis component is optional and therefore the API will only work if it is installedDeprecated.Gets whether or not the 'Referer' header should be sent while spidering.This component is optional and therefore the API will only work if it is installedThis component is optional and therefore the API will only work if it is installedThis component is optional and therefore the API will only work if it is installedThis component is optional and therefore the API will only work if it is installedThis component is optional and therefore the API will only work if it is installedThis component is optional and therefore the API will only work if it is installedThis component is optional and therefore the API will only work if it is installedRemoves a domain that's always in scope, with the given index.removeScan
(String scanid) This component is optional and therefore the API will only work if it is installedThis component is optional and therefore the API will only work if it is installedThis component is optional and therefore the API will only work if it is installedThis component is optional and therefore the API will only work if it is installedRuns the spider against the given URL (or context).scanAsUser
(String contextid, String userid, String url, String maxchildren, String recurse, String subtreeonly) Runs the spider from the perspective of a User, obtained using the given Context ID and User ID.scans()
This component is optional and therefore the API will only work if it is installedsetOptionAcceptCookies
(boolean bool) Sets whether or not a spider process should accept cookies while spidering.setOptionHandleODataParametersVisited
(boolean bool) This component is optional and therefore the API will only work if it is installedsetOptionHandleParameters
(String string) This component is optional and therefore the API will only work if it is installedsetOptionMaxChildren
(int i) Sets the maximum number of child nodes (per node) that can be crawled, 0 means no limit.setOptionMaxDepth
(int i) Sets the maximum depth the spider can crawl, 0 for unlimited depth.setOptionMaxDuration
(int i) This component is optional and therefore the API will only work if it is installedsetOptionMaxParseSizeBytes
(int i) Sets the maximum size, in bytes, that a response might have to be parsed.setOptionMaxScansInUI
(int i) This component is optional and therefore the API will only work if it is installedsetOptionParseComments
(boolean bool) This component is optional and therefore the API will only work if it is installedsetOptionParseDsStore
(boolean bool) This component is optional and therefore the API will only work if it is installedsetOptionParseGit
(boolean bool) This component is optional and therefore the API will only work if it is installedsetOptionParseRobotsTxt
(boolean bool) This component is optional and therefore the API will only work if it is installedsetOptionParseSitemapXml
(boolean bool) This component is optional and therefore the API will only work if it is installedsetOptionParseSVNEntries
(boolean bool) This component is optional and therefore the API will only work if it is installedsetOptionPostForm
(boolean bool) This component is optional and therefore the API will only work if it is installedsetOptionProcessForm
(boolean bool) This component is optional and therefore the API will only work if it is installedsetOptionRequestWaitTime
(int i) Deprecated.setOptionSendRefererHeader
(boolean bool) Sets whether or not the 'Referer' header should be sent while spidering.setOptionShowAdvancedDialog
(boolean bool) This component is optional and therefore the API will only work if it is installedsetOptionSkipURLString
(String string) This component is optional and therefore the API will only work if it is installedsetOptionThreadCount
(int i) This component is optional and therefore the API will only work if it is installedsetOptionUserAgent
(String string) This component is optional and therefore the API will only work if it is installedThis component is optional and therefore the API will only work if it is installedThis component is optional and therefore the API will only work if it is installedThis component is optional and therefore the API will only work if it is installedMethods inherited from class org.zaproxy.clientapi.gen.deprecated.SpiderDeprecated
clearExcludedFromScan, excludeFromScan, optionScope, optionScopeText, pause, pauseAllScans, removeAllScans, removeScan, resume, resumeAllScans, scan, scanAsUser, setOptionHandleODataParametersVisited, setOptionHandleParameters, setOptionMaxDepth, setOptionMaxDuration, setOptionMaxScansInUI, setOptionParseComments, setOptionParseGit, setOptionParseRobotsTxt, setOptionParseSitemapXml, setOptionParseSVNEntries, setOptionPostForm, setOptionProcessForm, setOptionRequestWaitTime, setOptionScopeString, setOptionScopeString, setOptionSendRefererHeader, setOptionShowAdvancedDialog, setOptionSkipURLString, setOptionThreadCount, setOptionUserAgent, stop, stopAllScans
-
Constructor Details
-
Spider
-
-
Method Details
-
status
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
results
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
fullResults
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
scans
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
excludedFromScan
Gets the regexes of URLs excluded from the spider scans.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
allUrls
Returns a list of unique URLs from the history table based on HTTP messages added by the Spider.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
addedNodes
Returns a list of the names of the nodes added to the Sites tree by the specified scan.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
domainsAlwaysInScope
Gets all the domains that are always in scope. For each domain the following are shown: the index, the value (domain), if enabled, and if specified as a regex.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
optionDomainsAlwaysInScope
Deprecated.Use view domainsAlwaysInScope instead.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
optionDomainsAlwaysInScopeEnabled
Deprecated.Use view domainsAlwaysInScope instead.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
optionHandleParameters
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionMaxChildren
Gets the maximum number of child nodes (per node) that can be crawled, 0 means no limit.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
optionMaxDepth
Gets the maximum depth the spider can crawl, 0 if unlimited.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
optionMaxDuration
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionMaxParseSizeBytes
Gets the maximum size, in bytes, that a response might have to be parsed.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
optionMaxScansInUI
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionRequestWaitTime
Deprecated.This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionSkipURLString
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionThreadCount
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionUserAgent
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionAcceptCookies
Gets whether or not a spider process should accept cookies while spidering.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
optionHandleODataParametersVisited
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionParseComments
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionParseDsStore
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionParseGit
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionParseRobotsTxt
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionParseSVNEntries
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionParseSitemapXml
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionPostForm
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionProcessForm
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionSendRefererHeader
Gets whether or not the 'Referer' header should be sent while spidering.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
optionShowAdvancedDialog
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
scan
public ApiResponse scan(String url, String maxchildren, String recurse, String contextname, String subtreeonly) throws ClientApiException Runs the spider against the given URL (or context). Optionally, the 'maxChildren' parameter can be set to limit the number of children scanned, the 'recurse' parameter can be used to prevent the spider from seeding recursively, the parameter 'contextName' can be used to constrain the scan to a Context and the parameter 'subtreeOnly' allows to restrict the spider under a site's subtree (using the specified 'url').This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
scanAsUser
public ApiResponse scanAsUser(String contextid, String userid, String url, String maxchildren, String recurse, String subtreeonly) throws ClientApiException Runs the spider from the perspective of a User, obtained using the given Context ID and User ID. See 'scan' action for more details.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
pause
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
resume
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
stop
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
removeScan
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
pauseAllScans
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
resumeAllScans
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
stopAllScans
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
removeAllScans
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
clearExcludedFromScan
Clears the regexes of URLs excluded from the spider scans.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
excludeFromScan
Adds a regex of URLs that should be excluded from the spider scans.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
addDomainAlwaysInScope
public ApiResponse addDomainAlwaysInScope(String value, String isregex, String isenabled) throws ClientApiException Adds a new domain that's always in scope, using the specified value. Optionally sets if the new entry is enabled (default, true) and whether or not the new value is specified as a regex (default, false).This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
modifyDomainAlwaysInScope
public ApiResponse modifyDomainAlwaysInScope(String idx, String value, String isregex, String isenabled) throws ClientApiException Modifies a domain that's always in scope. Allows to modify the value, if enabled or if a regex. The domain is selected with its index, which can be obtained with the view domainsAlwaysInScope.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
removeDomainAlwaysInScope
Removes a domain that's always in scope, with the given index. The index can be obtained with the view domainsAlwaysInScope.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
enableAllDomainsAlwaysInScope
Enables all domains that are always in scope.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
disableAllDomainsAlwaysInScope
Disables all domains that are always in scope.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setOptionHandleParameters
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionSkipURLString
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionUserAgent
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionAcceptCookies
Sets whether or not a spider process should accept cookies while spidering.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setOptionHandleODataParametersVisited
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionMaxChildren
Sets the maximum number of child nodes (per node) that can be crawled, 0 means no limit.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setOptionMaxDepth
Sets the maximum depth the spider can crawl, 0 for unlimited depth.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setOptionMaxDuration
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionMaxParseSizeBytes
Sets the maximum size, in bytes, that a response might have to be parsed. This allows the spider to skip big responses/files.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setOptionMaxScansInUI
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionParseComments
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionParseDsStore
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionParseGit
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionParseRobotsTxt
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionParseSVNEntries
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionParseSitemapXml
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionPostForm
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionProcessForm
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionRequestWaitTime
Deprecated.This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionSendRefererHeader
Sets whether or not the 'Referer' header should be sent while spidering.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setOptionShowAdvancedDialog
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionThreadCount
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-