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 ApiResponseaddDomainAlwaysInScope(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.ApiResponseaddedNodes(java.lang.String scanid)Returns a list of the names of the nodes added to the Sites tree by the specified scan.ApiResponseallUrls()Returns a list of unique URLs from the history table based on HTTP messages added by the Spider.ApiResponseclearExcludedFromScan()Clears the regexes of URLs excluded from the spider scans.ApiResponsedisableAllDomainsAlwaysInScope()Disables all domains that are always in scope.ApiResponsedomainsAlwaysInScope()Gets all the domains that are always in scope.ApiResponseenableAllDomainsAlwaysInScope()Enables all domains that are always in scope.ApiResponseexcludedFromScan()Gets the regexes of URLs excluded from the spider scans.ApiResponseexcludeFromScan(java.lang.String regex)Adds a regex of URLs that should be excluded from the spider scans.ApiResponsefullResults(java.lang.String scanid)This component is optional and therefore the API will only work if it is installedApiResponsemodifyDomainAlwaysInScope(java.lang.String idx, java.lang.String value, java.lang.String isregex, java.lang.String isenabled)Modifies a domain that's always in scope.ApiResponseoptionAcceptCookies()Gets whether or not a spider process should accept cookies while spidering.ApiResponseoptionDomainsAlwaysInScope()Deprecated.ApiResponseoptionDomainsAlwaysInScopeEnabled()Deprecated.ApiResponseoptionHandleODataParametersVisited()This component is optional and therefore the API will only work if it is installedApiResponseoptionHandleParameters()This component is optional and therefore the API will only work if it is installedApiResponseoptionMaxChildren()Gets the maximum number of child nodes (per node) that can be crawled, 0 means no limit.ApiResponseoptionMaxDepth()Gets the maximum depth the spider can crawl, 0 if unlimited.ApiResponseoptionMaxDuration()This component is optional and therefore the API will only work if it is installedApiResponseoptionMaxParseSizeBytes()Gets the maximum size, in bytes, that a response might have to be parsed.ApiResponseoptionMaxScansInUI()This component is optional and therefore the API will only work if it is installedApiResponseoptionParseComments()This component is optional and therefore the API will only work if it is installedApiResponseoptionParseDsStore()This component is optional and therefore the API will only work if it is installedApiResponseoptionParseGit()This component is optional and therefore the API will only work if it is installedApiResponseoptionParseRobotsTxt()This component is optional and therefore the API will only work if it is installedApiResponseoptionParseSitemapXml()This component is optional and therefore the API will only work if it is installedApiResponseoptionParseSVNEntries()This component is optional and therefore the API will only work if it is installedApiResponseoptionPostForm()This component is optional and therefore the API will only work if it is installedApiResponseoptionProcessForm()This component is optional and therefore the API will only work if it is installedApiResponseoptionRequestWaitTime()This component is optional and therefore the API will only work if it is installedApiResponseoptionSendRefererHeader()Gets whether or not the 'Referer' header should be sent while spidering.ApiResponseoptionShowAdvancedDialog()This component is optional and therefore the API will only work if it is installedApiResponseoptionSkipURLString()This component is optional and therefore the API will only work if it is installedApiResponseoptionThreadCount()This component is optional and therefore the API will only work if it is installedApiResponseoptionUserAgent()This component is optional and therefore the API will only work if it is installedApiResponsepause(java.lang.String scanid)This component is optional and therefore the API will only work if it is installedApiResponsepauseAllScans()This component is optional and therefore the API will only work if it is installedApiResponseremoveAllScans()This component is optional and therefore the API will only work if it is installedApiResponseremoveDomainAlwaysInScope(java.lang.String idx)Removes a domain that's always in scope, with the given index.ApiResponseremoveScan(java.lang.String scanid)This component is optional and therefore the API will only work if it is installedApiResponseresults(java.lang.String scanid)This component is optional and therefore the API will only work if it is installedApiResponseresume(java.lang.String scanid)This component is optional and therefore the API will only work if it is installedApiResponseresumeAllScans()This component is optional and therefore the API will only work if it is installedApiResponsescan(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).ApiResponsescanAsUser(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.ApiResponsescans()This component is optional and therefore the API will only work if it is installedApiResponsesetOptionAcceptCookies(boolean bool)Sets whether or not a spider process should accept cookies while spidering.ApiResponsesetOptionHandleODataParametersVisited(boolean bool)This component is optional and therefore the API will only work if it is installedApiResponsesetOptionHandleParameters(java.lang.String string)This component is optional and therefore the API will only work if it is installedApiResponsesetOptionMaxChildren(int i)Sets the maximum number of child nodes (per node) that can be crawled, 0 means no limit.ApiResponsesetOptionMaxDepth(int i)Sets the maximum depth the spider can crawl, 0 for unlimited depth.ApiResponsesetOptionMaxDuration(int i)This component is optional and therefore the API will only work if it is installedApiResponsesetOptionMaxParseSizeBytes(int i)Sets the maximum size, in bytes, that a response might have to be parsed.ApiResponsesetOptionMaxScansInUI(int i)This component is optional and therefore the API will only work if it is installedApiResponsesetOptionParseComments(boolean bool)This component is optional and therefore the API will only work if it is installedApiResponsesetOptionParseDsStore(boolean bool)This component is optional and therefore the API will only work if it is installedApiResponsesetOptionParseGit(boolean bool)This component is optional and therefore the API will only work if it is installedApiResponsesetOptionParseRobotsTxt(boolean bool)This component is optional and therefore the API will only work if it is installedApiResponsesetOptionParseSitemapXml(boolean bool)This component is optional and therefore the API will only work if it is installedApiResponsesetOptionParseSVNEntries(boolean bool)This component is optional and therefore the API will only work if it is installedApiResponsesetOptionPostForm(boolean bool)This component is optional and therefore the API will only work if it is installedApiResponsesetOptionProcessForm(boolean bool)This component is optional and therefore the API will only work if it is installedApiResponsesetOptionRequestWaitTime(int i)This component is optional and therefore the API will only work if it is installedApiResponsesetOptionSendRefererHeader(boolean bool)Sets whether or not the 'Referer' header should be sent while spidering.ApiResponsesetOptionShowAdvancedDialog(boolean bool)This component is optional and therefore the API will only work if it is installedApiResponsesetOptionSkipURLString(java.lang.String string)This component is optional and therefore the API will only work if it is installedApiResponsesetOptionThreadCount(int i)This component is optional and therefore the API will only work if it is installedApiResponsesetOptionUserAgent(java.lang.String string)This component is optional and therefore the API will only work if it is installedApiResponsestatus(java.lang.String scanid)This component is optional and therefore the API will only work if it is installedApiResponsestop(java.lang.String scanid)This component is optional and therefore the API will only work if it is installedApiResponsestopAllScans()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
-
-