Class 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 Detail

      • SpiderController

        protected SpiderController​(Spider spider,
                                   java.util.List<SpiderParser> customParsers)
        Deprecated.
        Instantiates a new spider controller.
        Parameters:
        spider - the spider
        customParsers - 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 uri
        method - 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 interface SpiderParserListener
        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.