KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > common > net > URLVisitor


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.common.net;
10
11 import java.net.URL JavaDoc;
12
13 /**
14  * Visitor pattern interface.
15  *
16  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
17  * @version $Revision: 1.1 $
18  */

19 public interface URLVisitor
20 {
21    /**
22     * Signal the visitor enters a directory.
23     *
24     * @param name the dir name
25     */

26    void startDir(String JavaDoc name);
27
28    /**
29     * Signals the visitor leavers a directory.
30     *
31     * @param name the dir name
32     */

33    void endDir(String JavaDoc name);
34
35    /**
36     * Signals the visitor there is a file.
37     *
38     * @param name the file name
39     * @param url the file URL
40     */

41    void file(String JavaDoc name, URL JavaDoc url);
42 }
43
Popular Tags