KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sslexplorer > vfs > webdav > DAVListener


1 /* ========================================================================== *
2  * Copyright (C) 2004-2005 Pier Fumagalli <http://www.betaversion.org/~pier/> *
3  * All rights reserved. *
4  * ========================================================================== *
5  * *
6  * Licensed under the Apache License, Version 2.0 (the "License"). You may *
7  * not use this file except in compliance with the License. You may obtain a *
8  * copy of the License at <http://www.apache.org/licenses/LICENSE-2.0>. *
9  * *
10  * Unless required by applicable law or agreed to in writing, software *
11  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT *
12  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the *
13  * License for the specific language governing permissions and limitations *
14  * under the License. *
15  * *
16  * ========================================================================== */

17 package com.sslexplorer.vfs.webdav;
18
19 import com.sslexplorer.vfs.VFSRepository;
20 import com.sslexplorer.vfs.VFSResource;
21
22 /**
23  * <p>A simple interface identifying a {@link VFSRepository} event listener.</p>
24  *
25  * @author <a HREF="http://www.betaversion.org/~pier/">Pier Fumagalli</a>
26  */

27 public interface DAVListener {
28
29     /** <p>An event representing the creation of a collection.</p> */
30     public static final int COLLECTION_CREATED = 1;
31     /** <p>An event representing the deletion of a collection.</p> */
32     public static final int COLLECTION_REMOVED = 2;
33     /** <p>An event representing the creation of a resource.</p> */
34     public static final int RESOURCE_CREATED = 3;
35     /** <p>An event representing the deletion of a resource.</p> */
36     public static final int RESOURCE_REMOVED = 4;
37     /** <p>An event representing the modification of a resource.</p> */
38     public static final int RESOURCE_MODIFIED = 5;
39     
40     /**
41      * <p>Notify this {@link DAVListener} of an action occurred on a
42      * specified {@link VFSResource}.</p>
43      *
44      * @param resource the {@link VFSResource} associated with the notification.
45      * @param event a number identifying the type of the notification.
46      */

47     public void notify(VFSResource resource, int event);
48
49 }
50
Popular Tags