KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > slide > webdav > util > WebdavConstants


1 /*
2  * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/WebdavConstants.java,v 1.24 2004/08/05 14:43:30 dflorey Exp $
3  * $Revision: 1.24 $
4  * $Date: 2004/08/05 14:43:30 $
5  *
6  * ====================================================================
7  *
8  * Copyright 1999-2002 The Apache Software Foundation
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  *
22  */

23
24 package org.apache.slide.webdav.util;
25
26 import java.util.Arrays JavaDoc;
27 import java.util.Collections JavaDoc;
28 import java.util.List JavaDoc;
29
30 /**
31  * WebDAV constants.
32  *
33  */

34 public interface WebdavConstants {
35
36     /** URI schemes */
37     String JavaDoc S_DAV = "DAV:"; // DAV: namespace URI
38
String JavaDoc S_LOCK_TOKEN = "opaquelocktoken:"; // LOCK feature
39

40     /** Features */
41     String JavaDoc F_WEBDAV = "1"; // class 1
42
String JavaDoc F_LOCKING = "2"; // class 2
43
String JavaDoc F_SLIDE = "slide"; // what does this feature exactly mean?
44

45     /** Methods */
46     String JavaDoc M_CONNECT = "CONNECT";
47     String JavaDoc M_COPY = "COPY";
48     String JavaDoc M_DELETE = "DELETE";
49     String JavaDoc M_GET = "GET";
50     String JavaDoc M_HEAD = "HEAD";
51     String JavaDoc M_LOCK = "LOCK";
52     String JavaDoc M_MKCOL = "MKCOL";
53     String JavaDoc M_MOVE = "MOVE";
54     String JavaDoc M_OPTIONS = "OPTIONS";
55     String JavaDoc M_POST = "POST";
56     String JavaDoc M_PROPFIND = "PROPFIND";
57     String JavaDoc M_PROPPATCH = "PROPPATCH";
58     String JavaDoc M_PUT = "PUT";
59     String JavaDoc M_TRACE = "TRACE";
60     String JavaDoc M_UNLOCK = "UNLOCK";
61
62     /** Headers */
63     String JavaDoc H_CACHE_CONTROL = "Cache-Control";
64     String JavaDoc H_DAV = "DAV";
65     String JavaDoc H_DEPTH = "Depth";
66     String JavaDoc H_DESTINATION = "Destination";
67     String JavaDoc H_IF = "If";
68     String JavaDoc H_LOCK_TOKEN = "Lock-Token";
69     String JavaDoc H_LOCATION = "Location";
70     String JavaDoc H_OVERWRITE = "Overwrite";
71     String JavaDoc H_STATUS_URI = "Status-URI";
72     String JavaDoc H_TIMEOUT = "Timeout";
73     String JavaDoc H_TRANSACTION = "Transaction";
74     String JavaDoc H_CONTENT_TYPE = "Content-Type";
75
76     /** XML Elements */
77     String JavaDoc E_ABORT = "abort";
78     String JavaDoc E_ACTIVELOCK = "activelock";
79     String JavaDoc E_ALLPROP = "allprop";
80     String JavaDoc E_COMMIT = "commit";
81     String JavaDoc E_COLLECTION = "collection";
82     String JavaDoc E_DEPTH = "depth";
83     String JavaDoc E_DST = "dst";
84     String JavaDoc E_EXCLUSIVE = "exclusive";
85     String JavaDoc E_ERROR = "error";
86     String JavaDoc E_GROUPOPERATION = "groupoperation";
87     String JavaDoc E_HREF = "href";
88     String JavaDoc E_KEEPALIVE = "keepalive";
89     String JavaDoc E_LINK = "link";
90     String JavaDoc E_LOCAL = "local";
91     String JavaDoc E_LOCKDISCOVERY = "lockdiscovery";
92     String JavaDoc E_LOCKENTRY = "lockentry";
93     String JavaDoc E_LOCKINFO = "lockinfo";
94     String JavaDoc E_LOCKNULL = "lock-null";
95     String JavaDoc E_LOCKSCOPE = "lockscope";
96     String JavaDoc E_LOCKTOKEN = "locktoken";
97     String JavaDoc E_LOCKTYPE = "locktype";
98     String JavaDoc E_MULTISTATUS = "multistatus";
99     String JavaDoc E_OMIT = "omit";
100     String JavaDoc E_OWNER = "owner";
101     String JavaDoc E_PROP = "prop";
102     String JavaDoc E_PROPERTYBEHAVIOR = "propertybehavior";
103     String JavaDoc E_PROPERTYUPDATE = "propertyupdate";
104     String JavaDoc E_PROPFIND = "propfind";
105     String JavaDoc E_PROPNAME = "propname";
106     String JavaDoc E_PROPSTAT = "propstat";
107     String JavaDoc E_REMOVE = "remove";
108     String JavaDoc E_REPORT = "report";
109     String JavaDoc E_RESPONSE = "response";
110     String JavaDoc E_RESPONSEDESCRIPTION = "responsedescription";
111     String JavaDoc E_SET = "set";
112     String JavaDoc E_SHARED = "shared";
113     String JavaDoc E_SRC = "src";
114     String JavaDoc E_STATUS = "status";
115     String JavaDoc E_TIMEOUT = "timeout";
116     String JavaDoc E_TRANSACTION = "transaction";
117     String JavaDoc E_TRANSACTIONINFO = "transactioninfo";
118     String JavaDoc E_TRANSACTIONSTATUS = "transactionstatus";
119     String JavaDoc E_WRITE = "write";
120
121     /** Live Properties */
122     String JavaDoc P_CREATIONDATE = "creationdate";
123     String JavaDoc P_MODIFICATIONDATE = "modificationdate";
124     String JavaDoc P_DISPLAYNAME = "displayname";
125     String JavaDoc P_GETCONTENTLANGUAGE = "getcontentlanguage";
126     String JavaDoc P_GETCONTENTLENGTH = "getcontentlength";
127     String JavaDoc P_GETCONTENTTYPE = "getcontenttype";
128     String JavaDoc P_GETETAG = "getetag";
129     String JavaDoc P_GETLASTMODIFIED = "getlastmodified";
130     String JavaDoc P_LOCKDISCOVERY = "lockdiscovery";
131     String JavaDoc P_RESOURCETYPE = "resourcetype";
132     String JavaDoc P_SOURCE = "source";
133     String JavaDoc P_SUPPORTEDLOCK = "supportedlock";
134
135     String JavaDoc[] WEBDAV_PROPERTIES = new String JavaDoc[] {
136         P_CREATIONDATE,
137         P_MODIFICATIONDATE,
138         P_DISPLAYNAME,
139         P_GETCONTENTLANGUAGE,
140         P_GETCONTENTLENGTH,
141         P_GETCONTENTTYPE,
142         P_GETETAG,
143         P_GETLASTMODIFIED,
144         P_LOCKDISCOVERY,
145         P_RESOURCETYPE,
146         P_SOURCE,
147         P_SUPPORTEDLOCK
148     };
149
150     List JavaDoc WEBDAV_PROPERTY_LIST = Collections.unmodifiableList(Arrays.asList(WEBDAV_PROPERTIES));
151 }
152
153
Popular Tags