public class AjaxSpider extends AjaxSpiderDeprecated
Constructor and Description |
---|
AjaxSpider(ClientApi api) |
Modifier and Type | Method and Description |
---|---|
ApiResponse |
addAllowedResource(java.lang.String regex,
java.lang.String enabled)
Adds an allowed resource.
|
ApiResponse |
allowedResources()
Gets the allowed resources.
|
ApiResponse |
fullResults()
Gets the full crawled content detected by the AJAX Spider.
|
ApiResponse |
numberOfResults()
Gets the number of resources found.
|
ApiResponse |
optionBrowserId()
Gets the configured browser to use for crawling.
|
ApiResponse |
optionClickDefaultElems()
Gets the configured value for 'Click Default Elements Only', HTML elements such as 'a',
'button', 'input', all associated with some action or links on the page.
|
ApiResponse |
optionClickElemsOnce()
Gets the value configured for the AJAX Spider to know if it should click on the elements only
once.
|
ApiResponse |
optionEventWait()
Gets the time to wait after an event (in milliseconds).
|
ApiResponse |
optionMaxCrawlDepth()
Gets the configured value for the max crawl depth.
|
ApiResponse |
optionMaxCrawlStates()
Gets the configured value for the maximum crawl states allowed.
|
ApiResponse |
optionMaxDuration()
Gets the configured max duration of the crawl, the value is in minutes.
|
ApiResponse |
optionNumberOfBrowsers()
Gets the configured number of browsers to be used.
|
ApiResponse |
optionRandomInputs()
Gets if the AJAX Spider will use random values in form fields when crawling, if set to true.
|
ApiResponse |
optionReloadWait()
Gets the configured time to wait after reloading the page, this value is in milliseconds.
|
ApiResponse |
removeAllowedResource(java.lang.String regex)
Removes an allowed resource.
|
ApiResponse |
results(java.lang.String start,
java.lang.String count)
Gets the current results of the crawler.
|
ApiResponse |
scan(java.lang.String url,
java.lang.String inscope,
java.lang.String contextname,
java.lang.String subtreeonly)
Runs the AJAX Spider against a given target.
|
ApiResponse |
scanAsUser(java.lang.String contextname,
java.lang.String username,
java.lang.String url,
java.lang.String subtreeonly)
Runs the AJAX Spider from the perspective of a User of the web application.
|
ApiResponse |
setEnabledAllowedResource(java.lang.String regex,
java.lang.String enabled)
Sets whether or not an allowed resource is enabled.
|
ApiResponse |
setOptionBrowserId(java.lang.String string)
Sets the configuration of the AJAX Spider to use one of the supported browsers.
|
ApiResponse |
setOptionClickDefaultElems(boolean bool)
Sets whether or not the the AJAX Spider will only click on the default HTML elements.
|
ApiResponse |
setOptionClickElemsOnce(boolean bool)
When enabled, the crawler attempts to interact with each element (e.g., by clicking) only
once.
|
ApiResponse |
setOptionEventWait(int i)
Sets the time to wait after an event (in milliseconds).
|
ApiResponse |
setOptionMaxCrawlDepth(int i)
Sets the maximum depth that the crawler can reach.
|
ApiResponse |
setOptionMaxCrawlStates(int i)
Sets the maximum number of states that the crawler should crawl.
|
ApiResponse |
setOptionMaxDuration(int i)
The maximum time that the crawler is allowed to run.
|
ApiResponse |
setOptionNumberOfBrowsers(int i)
Sets the number of windows to be used by AJAX Spider.
|
ApiResponse |
setOptionRandomInputs(boolean bool)
When enabled, inserts random values into form fields.
|
ApiResponse |
setOptionReloadWait(int i)
Sets the time to wait after the page is loaded before interacting with it.
|
ApiResponse |
status()
Gets the current status of the crawler.
|
ApiResponse |
stop()
Stops the AJAX Spider.
|
scan, setOptionBrowserId, setOptionClickDefaultElems, setOptionClickElemsOnce, setOptionEventWait, setOptionMaxCrawlDepth, setOptionMaxCrawlStates, setOptionMaxDuration, setOptionNumberOfBrowsers, setOptionRandomInputs, setOptionReloadWait, stop
public AjaxSpider(ClientApi api)
public ApiResponse allowedResources() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse status() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse results(java.lang.String start, java.lang.String count) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse numberOfResults() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse fullResults() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse optionBrowserId() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse optionEventWait() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse optionMaxCrawlDepth() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse optionMaxCrawlStates() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse optionMaxDuration() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse optionNumberOfBrowsers() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse optionReloadWait() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse optionClickDefaultElems() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse optionClickElemsOnce() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse optionRandomInputs() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse scan(java.lang.String url, java.lang.String inscope, java.lang.String contextname, java.lang.String subtreeonly) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse scanAsUser(java.lang.String contextname, java.lang.String username, java.lang.String url, java.lang.String subtreeonly) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse stop() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse addAllowedResource(java.lang.String regex, java.lang.String enabled) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse removeAllowedResource(java.lang.String regex) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse setEnabledAllowedResource(java.lang.String regex, java.lang.String enabled) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse setOptionBrowserId(java.lang.String string) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse setOptionClickDefaultElems(boolean bool) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse setOptionClickElemsOnce(boolean bool) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse setOptionEventWait(int i) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse setOptionMaxCrawlDepth(int i) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse setOptionMaxCrawlStates(int i) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse setOptionMaxDuration(int i) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse setOptionNumberOfBrowsers(int i) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse setOptionRandomInputs(boolean bool) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse setOptionReloadWait(int i) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException