Search in sources :

Example 1 with DefaultFetchFilter

use of org.zaproxy.zap.spider.filters.DefaultFetchFilter in project zaproxy by zaproxy.

the class Spider method init.

/**
	 * Initialize the spider.
	 */
private void init() {
    this.paused = false;
    this.stopped = true;
    this.tasksDoneCount = 0;
    this.tasksTotalCount = 0;
    this.initialized = false;
    // Add a default fetch filter and any custom ones
    defaultFetchFilter = new DefaultFetchFilter();
    this.addFetchFilter(defaultFetchFilter);
    for (FetchFilter filter : extension.getCustomFetchFilters()) {
        this.addFetchFilter(filter);
    }
    // Add a default parse filter and any custom ones
    this.addParseFilter(new DefaultParseFilter());
    for (ParseFilter filter : extension.getCustomParseFilters()) this.addParseFilter(filter);
    // Add the scan context, if any
    defaultFetchFilter.setScanContext(this.scanContext);
    defaultFetchFilter.setDomainsAlwaysInScope(spiderParam.getDomainsAlwaysInScopeEnabled());
}
Also used : DefaultParseFilter(org.zaproxy.zap.spider.filters.DefaultParseFilter) DefaultParseFilter(org.zaproxy.zap.spider.filters.DefaultParseFilter) ParseFilter(org.zaproxy.zap.spider.filters.ParseFilter) DefaultFetchFilter(org.zaproxy.zap.spider.filters.DefaultFetchFilter) FetchFilter(org.zaproxy.zap.spider.filters.FetchFilter) DefaultFetchFilter(org.zaproxy.zap.spider.filters.DefaultFetchFilter)

Aggregations

DefaultFetchFilter (org.zaproxy.zap.spider.filters.DefaultFetchFilter)1 DefaultParseFilter (org.zaproxy.zap.spider.filters.DefaultParseFilter)1 FetchFilter (org.zaproxy.zap.spider.filters.FetchFilter)1 ParseFilter (org.zaproxy.zap.spider.filters.ParseFilter)1