KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > matuschek > spider > URLCheck


1 package net.matuschek.spider;
2
3 /*********************************************
4     Copyright (c) 2001 by Daniel Matuschek
5 *********************************************/

6
7 import java.net.URL JavaDoc;
8
9 /**
10  * This interface defines a simple method that allows another
11  * object (usually this will be a WebRobot) to test, if a given
12  * URL is acceptable (e.g. for the WebRobot this means, it should
13  * retrieve the URL).
14  *
15  * @author Daniel Matuschek
16  * @version $Revision: 1.3 $
17  */

18 public interface URLCheck {
19
20   /**
21    * Tests if the given URL is acceptable. This method is designed
22    * for a WebRobot to do additional tests, if it should retrieve a
23    * URL
24    * @see WebRobot
25    */

26   boolean checkURL(URL JavaDoc u);
27   
28   /**
29    * Tests if the given URL is acceptable for processing.
30    * This method is designed for a WebRobot to do additional tests, if it should
31    * process a URL
32    * @see WebRobot
33    */

34   boolean checkURLForProcessing(URL JavaDoc u);
35 } // URLCheck
36
Popular Tags