01: package net.matuschek.spider;
02:
03: /*********************************************
04: Copyright (c) 2001 by Daniel Matuschek
05: *********************************************/
06:
07: import java.net.URL;
08:
09: /**
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 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 u);
35: } // URLCheck
|