Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
amass - web crawling made easy Copyright (c) 2011-2013, Sandeep Gupta http://www.sangupta/projects/amass Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
package com.sangupta.amass.core;
Contract for implementations that need to check the com.sangupta.amass.domain.CrawlableURL before actual crawling starts.

public interface BeforeCrawlHandler {

Method that is invoked before crawling for a URL is to begin. This hook can be used by implementations to figure out one last time, if they wish to cancel the crawling of the URL. The method should return true to continue crawling the URL, or false to cancel the crawling.

crawlableURL the URL which we will be crawling after this handler
priority the priority of the URL as received
true if we can go ahead to crawl the URL, false in case we need to skip crawling this URL.
	public boolean beforeCrawl(CrawlableURL crawlableURLint priority);
New to GrepCode? Check out our FAQ X