Class Spider
- java.lang.Object
-
- org.zaproxy.clientapi.gen.deprecated.SpiderDeprecated
-
- org.zaproxy.clientapi.gen.Spider
-
public class Spider extends SpiderDeprecated
This file was automatically generated.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ApiResponse
addDomainAlwaysInScope(java.lang.String value, java.lang.String isregex, java.lang.String isenabled)
Adds a new domain that's always in scope, using the specified value.ApiResponse
addedNodes(java.lang.String scanid)
Returns a list of the names of the nodes added to the Sites tree by the specified scan.ApiResponse
allUrls()
Returns a list of unique URLs from the history table based on HTTP messages added by the Spider.ApiResponse
clearExcludedFromScan()
Clears the regexes of URLs excluded from the spider scans.ApiResponse
disableAllDomainsAlwaysInScope()
Disables all domains that are always in scope.ApiResponse
domainsAlwaysInScope()
Gets all the domains that are always in scope.ApiResponse
enableAllDomainsAlwaysInScope()
Enables all domains that are always in scope.ApiResponse
excludedFromScan()
Gets the regexes of URLs excluded from the spider scans.ApiResponse
excludeFromScan(java.lang.String regex)
Adds a regex of URLs that should be excluded from the spider scans.ApiResponse
fullResults(java.lang.String scanid)
This component is optional and therefore the API will only work if it is installedApiResponse
modifyDomainAlwaysInScope(java.lang.String idx, java.lang.String value, java.lang.String isregex, java.lang.String isenabled)
Modifies a domain that's always in scope.ApiResponse
optionAcceptCookies()
Gets whether or not a spider process should accept cookies while spidering.ApiResponse
optionDomainsAlwaysInScope()
Deprecated.ApiResponse
optionDomainsAlwaysInScopeEnabled()
Deprecated.ApiResponse
optionHandleODataParametersVisited()
This component is optional and therefore the API will only work if it is installedApiResponse
optionHandleParameters()
This component is optional and therefore the API will only work if it is installedApiResponse
optionMaxChildren()
Gets the maximum number of child nodes (per node) that can be crawled, 0 means no limit.ApiResponse
optionMaxDepth()
Gets the maximum depth the spider can crawl, 0 if unlimited.ApiResponse
optionMaxDuration()
This component is optional and therefore the API will only work if it is installedApiResponse
optionMaxParseSizeBytes()
Gets the maximum size, in bytes, that a response might have to be parsed.ApiResponse
optionMaxScansInUI()
This component is optional and therefore the API will only work if it is installedApiResponse
optionParseComments()
This component is optional and therefore the API will only work if it is installedApiResponse
optionParseDsStore()
This component is optional and therefore the API will only work if it is installedApiResponse
optionParseGit()
This component is optional and therefore the API will only work if it is installedApiResponse
optionParseRobotsTxt()
This component is optional and therefore the API will only work if it is installedApiResponse
optionParseSitemapXml()
This component is optional and therefore the API will only work if it is installedApiResponse
optionParseSVNEntries()
This component is optional and therefore the API will only work if it is installedApiResponse
optionPostForm()
This component is optional and therefore the API will only work if it is installedApiResponse
optionProcessForm()
This component is optional and therefore the API will only work if it is installedApiResponse
optionRequestWaitTime()
This component is optional and therefore the API will only work if it is installedApiResponse
optionSendRefererHeader()
Gets whether or not the 'Referer' header should be sent while spidering.ApiResponse
optionShowAdvancedDialog()
This component is optional and therefore the API will only work if it is installedApiResponse
optionSkipURLString()
This component is optional and therefore the API will only work if it is installedApiResponse
optionThreadCount()
This component is optional and therefore the API will only work if it is installedApiResponse
optionUserAgent()
This component is optional and therefore the API will only work if it is installedApiResponse
pause(java.lang.String scanid)
This component is optional and therefore the API will only work if it is installedApiResponse
pauseAllScans()
This component is optional and therefore the API will only work if it is installedApiResponse
removeAllScans()
This component is optional and therefore the API will only work if it is installedApiResponse
removeDomainAlwaysInScope(java.lang.String idx)
Removes a domain that's always in scope, with the given index.ApiResponse
removeScan(java.lang.String scanid)
This component is optional and therefore the API will only work if it is installedApiResponse
results(java.lang.String scanid)
This component is optional and therefore the API will only work if it is installedApiResponse
resume(java.lang.String scanid)
This component is optional and therefore the API will only work if it is installedApiResponse
resumeAllScans()
This component is optional and therefore the API will only work if it is installedApiResponse
scan(java.lang.String url, java.lang.String maxchildren, java.lang.String recurse, java.lang.String contextname, java.lang.String subtreeonly)
Runs the spider against the given URL (or context).ApiResponse
scanAsUser(java.lang.String contextid, java.lang.String userid, java.lang.String url, java.lang.String maxchildren, java.lang.String recurse, java.lang.String subtreeonly)
Runs the spider from the perspective of a User, obtained using the given Context ID and User ID.ApiResponse
scans()
This component is optional and therefore the API will only work if it is installedApiResponse
setOptionAcceptCookies(boolean bool)
Sets whether or not a spider process should accept cookies while spidering.ApiResponse
setOptionHandleODataParametersVisited(boolean bool)
This component is optional and therefore the API will only work if it is installedApiResponse
setOptionHandleParameters(java.lang.String string)
This component is optional and therefore the API will only work if it is installedApiResponse
setOptionMaxChildren(int i)
Sets the maximum number of child nodes (per node) that can be crawled, 0 means no limit.ApiResponse
setOptionMaxDepth(int i)
Sets the maximum depth the spider can crawl, 0 for unlimited depth.ApiResponse
setOptionMaxDuration(int i)
This component is optional and therefore the API will only work if it is installedApiResponse
setOptionMaxParseSizeBytes(int i)
Sets the maximum size, in bytes, that a response might have to be parsed.ApiResponse
setOptionMaxScansInUI(int i)
This component is optional and therefore the API will only work if it is installedApiResponse
setOptionParseComments(boolean bool)
This component is optional and therefore the API will only work if it is installedApiResponse
setOptionParseDsStore(boolean bool)
This component is optional and therefore the API will only work if it is installedApiResponse
setOptionParseGit(boolean bool)
This component is optional and therefore the API will only work if it is installedApiResponse
setOptionParseRobotsTxt(boolean bool)
This component is optional and therefore the API will only work if it is installedApiResponse
setOptionParseSitemapXml(boolean bool)
This component is optional and therefore the API will only work if it is installedApiResponse
setOptionParseSVNEntries(boolean bool)
This component is optional and therefore the API will only work if it is installedApiResponse
setOptionPostForm(boolean bool)
This component is optional and therefore the API will only work if it is installedApiResponse
setOptionProcessForm(boolean bool)
This component is optional and therefore the API will only work if it is installedApiResponse
setOptionRequestWaitTime(int i)
This component is optional and therefore the API will only work if it is installedApiResponse
setOptionSendRefererHeader(boolean bool)
Sets whether or not the 'Referer' header should be sent while spidering.ApiResponse
setOptionShowAdvancedDialog(boolean bool)
This component is optional and therefore the API will only work if it is installedApiResponse
setOptionSkipURLString(java.lang.String string)
This component is optional and therefore the API will only work if it is installedApiResponse
setOptionThreadCount(int i)
This component is optional and therefore the API will only work if it is installedApiResponse
setOptionUserAgent(java.lang.String string)
This component is optional and therefore the API will only work if it is installedApiResponse
status(java.lang.String scanid)
This component is optional and therefore the API will only work if it is installedApiResponse
stop(java.lang.String scanid)
This component is optional and therefore the API will only work if it is installedApiResponse
stopAllScans()
This component is optional and therefore the API will only work if it is installed-
Methods 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 Detail
-
Spider
public Spider(ClientApi api)
-
-
Method Detail
-
status
public ApiResponse status(java.lang.String scanid) throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
results
public ApiResponse results(java.lang.String scanid) throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
fullResults
public ApiResponse fullResults(java.lang.String scanid) throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
scans
public ApiResponse scans() throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
excludedFromScan
public ApiResponse excludedFromScan() throws ClientApiException
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
public ApiResponse allUrls() throws ClientApiException
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
public ApiResponse addedNodes(java.lang.String scanid) throws ClientApiException
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
public ApiResponse domainsAlwaysInScope() throws ClientApiException
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 public ApiResponse optionDomainsAlwaysInScope() throws ClientApiException
Deprecated.Use view domainsAlwaysInScope instead.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
optionDomainsAlwaysInScopeEnabled
@Deprecated public ApiResponse optionDomainsAlwaysInScopeEnabled() throws ClientApiException
Deprecated.Use view domainsAlwaysInScope instead.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
optionHandleParameters
public ApiResponse optionHandleParameters() throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionMaxChildren
public ApiResponse optionMaxChildren() throws ClientApiException
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
public ApiResponse optionMaxDepth() throws ClientApiException
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
public ApiResponse optionMaxDuration() throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionMaxParseSizeBytes
public ApiResponse optionMaxParseSizeBytes() throws ClientApiException
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
public ApiResponse optionMaxScansInUI() throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionRequestWaitTime
public ApiResponse optionRequestWaitTime() throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionSkipURLString
public ApiResponse optionSkipURLString() throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionThreadCount
public ApiResponse optionThreadCount() throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionUserAgent
public ApiResponse optionUserAgent() throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionAcceptCookies
public ApiResponse optionAcceptCookies() throws ClientApiException
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
public ApiResponse optionHandleODataParametersVisited() throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionParseComments
public ApiResponse optionParseComments() throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionParseDsStore
public ApiResponse optionParseDsStore() throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionParseGit
public ApiResponse optionParseGit() throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionParseRobotsTxt
public ApiResponse optionParseRobotsTxt() throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionParseSVNEntries
public ApiResponse optionParseSVNEntries() throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionParseSitemapXml
public ApiResponse optionParseSitemapXml() throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionPostForm
public ApiResponse optionPostForm() throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionProcessForm
public ApiResponse optionProcessForm() throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
optionSendRefererHeader
public ApiResponse optionSendRefererHeader() throws ClientApiException
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
public ApiResponse optionShowAdvancedDialog() throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
scan
public ApiResponse scan(java.lang.String url, java.lang.String maxchildren, java.lang.String recurse, java.lang.String contextname, java.lang.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(java.lang.String contextid, java.lang.String userid, java.lang.String url, java.lang.String maxchildren, java.lang.String recurse, java.lang.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
public ApiResponse pause(java.lang.String scanid) throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
resume
public ApiResponse resume(java.lang.String scanid) throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
stop
public ApiResponse stop(java.lang.String scanid) throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
removeScan
public ApiResponse removeScan(java.lang.String scanid) throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
pauseAllScans
public ApiResponse pauseAllScans() throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
resumeAllScans
public ApiResponse resumeAllScans() throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
stopAllScans
public ApiResponse stopAllScans() throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
removeAllScans
public ApiResponse removeAllScans() throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
clearExcludedFromScan
public ApiResponse clearExcludedFromScan() throws ClientApiException
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
public ApiResponse excludeFromScan(java.lang.String regex) throws ClientApiException
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(java.lang.String value, java.lang.String isregex, java.lang.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(java.lang.String idx, java.lang.String value, java.lang.String isregex, java.lang.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
public ApiResponse removeDomainAlwaysInScope(java.lang.String idx) throws ClientApiException
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
public ApiResponse enableAllDomainsAlwaysInScope() throws ClientApiException
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
public ApiResponse disableAllDomainsAlwaysInScope() throws ClientApiException
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
public ApiResponse setOptionHandleParameters(java.lang.String string) throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionSkipURLString
public ApiResponse setOptionSkipURLString(java.lang.String string) throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionUserAgent
public ApiResponse setOptionUserAgent(java.lang.String string) throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionAcceptCookies
public ApiResponse setOptionAcceptCookies(boolean bool) throws ClientApiException
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
public ApiResponse setOptionHandleODataParametersVisited(boolean bool) throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionMaxChildren
public ApiResponse setOptionMaxChildren(int i) throws ClientApiException
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
public ApiResponse setOptionMaxDepth(int i) throws ClientApiException
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
public ApiResponse setOptionMaxDuration(int i) throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionMaxParseSizeBytes
public ApiResponse setOptionMaxParseSizeBytes(int i) throws ClientApiException
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
public ApiResponse setOptionMaxScansInUI(int i) throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionParseComments
public ApiResponse setOptionParseComments(boolean bool) throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionParseDsStore
public ApiResponse setOptionParseDsStore(boolean bool) throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionParseGit
public ApiResponse setOptionParseGit(boolean bool) throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionParseRobotsTxt
public ApiResponse setOptionParseRobotsTxt(boolean bool) throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionParseSVNEntries
public ApiResponse setOptionParseSVNEntries(boolean bool) throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionParseSitemapXml
public ApiResponse setOptionParseSitemapXml(boolean bool) throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionPostForm
public ApiResponse setOptionPostForm(boolean bool) throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionProcessForm
public ApiResponse setOptionProcessForm(boolean bool) throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionRequestWaitTime
public ApiResponse setOptionRequestWaitTime(int i) throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionSendRefererHeader
public ApiResponse setOptionSendRefererHeader(boolean bool) throws ClientApiException
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
public ApiResponse setOptionShowAdvancedDialog(boolean bool) throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
setOptionThreadCount
public ApiResponse setOptionThreadCount(int i) throws ClientApiException
This component is optional and therefore the API will only work if it is installed- Throws:
ClientApiException
-
-