Package org.zaproxy.zap.spider
Class SpiderController
- java.lang.Object
-
- org.zaproxy.zap.spider.SpiderController
-
- All Implemented Interfaces:
SpiderParserListener
@Deprecated public class SpiderController extends java.lang.Object implements SpiderParserListener
Deprecated.(2.12.0) See the spider add-on in zap-extensions instead.The SpiderController is used to manage the crawling process and interacts directly with the Spider Task threads.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SpiderController(Spider spider, java.util.List<SpiderParser> customParsers)
Deprecated.Instantiates a new spider controller.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addFetchFilter(FetchFilter filter)
Deprecated.Adds a new fetch filter to the spider.void
addParseFilter(ParseFilter filter)
Deprecated.Adds the parse filter to the spider controller.protected void
addSeed(org.apache.commons.httpclient.URI uri, java.lang.String method)
Deprecated.Adds a new seed, if it wasn't already processed.void
addSpiderParser(SpiderParser parser)
Deprecated.protected ParseFilter
getDefaultParseFilter()
Deprecated.protected java.util.LinkedList<FetchFilter>
getFetchFilters()
Deprecated.Gets the fetch filters used by the spider during the spidering process.protected java.util.LinkedList<ParseFilter>
getParseFilters()
Deprecated.Gets the parses the filters.java.util.List<SpiderParser>
getParsers()
Deprecated.Gets an unmodifiable view of the list of that should be used during the scan.void
init()
Deprecated.void
reset()
Deprecated.Clears the previous process.void
resourceFound(SpiderResourceFound resourceFound)
Deprecated.Event triggered when a new resource is found.protected void
setDefaultParseFilter(ParseFilter filter)
Deprecated.
-
-
-
Constructor Detail
-
SpiderController
protected SpiderController(Spider spider, java.util.List<SpiderParser> customParsers)
Deprecated.Instantiates a new spider controller.- Parameters:
spider
- the spidercustomParsers
- the custom spider parsers
-
-
Method Detail
-
addSeed
protected void addSeed(org.apache.commons.httpclient.URI uri, java.lang.String method)
Deprecated.Adds a new seed, if it wasn't already processed.- Parameters:
uri
- the urimethod
- the http method used for fetching the resource
-
getFetchFilters
protected java.util.LinkedList<FetchFilter> getFetchFilters()
Deprecated.Gets the fetch filters used by the spider during the spidering process.- Returns:
- the fetch filters
-
addFetchFilter
public void addFetchFilter(FetchFilter filter)
Deprecated.Adds a new fetch filter to the spider.- Parameters:
filter
- the filter
-
getParseFilters
protected java.util.LinkedList<ParseFilter> getParseFilters()
Deprecated.Gets the parses the filters.- Returns:
- the parses the filters
-
addParseFilter
public void addParseFilter(ParseFilter filter)
Deprecated.Adds the parse filter to the spider controller.- Parameters:
filter
- the filter
-
setDefaultParseFilter
protected void setDefaultParseFilter(ParseFilter filter)
Deprecated.
-
getDefaultParseFilter
protected ParseFilter getDefaultParseFilter()
Deprecated.
-
init
public void init()
Deprecated.
-
reset
public void reset()
Deprecated.Clears the previous process.
-
resourceFound
public void resourceFound(SpiderResourceFound resourceFound)
Deprecated.Description copied from interface:SpiderParserListener
Event triggered when a new resource is found. The resourceFound contains all the required information about the resource (source message, URI, depth, method, etc.).- Specified by:
resourceFound
in interfaceSpiderParserListener
- Parameters:
resourceFound
- definition of found spider resource
-
getParsers
public java.util.List<SpiderParser> getParsers()
Deprecated.Gets an unmodifiable view of the list of that should be used during the scan.- Returns:
- the parsers
-
addSpiderParser
public void addSpiderParser(SpiderParser parser)
Deprecated.
-
-