KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sslexplorer > vfs > webdav > methods > PROPPATCH


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.methods;
18
19 import java.io.IOException JavaDoc;
20
21 import com.sslexplorer.vfs.VFSResource;
22 import com.sslexplorer.vfs.webdav.DAVException;
23 import com.sslexplorer.vfs.webdav.DAVMethod;
24 import com.sslexplorer.vfs.webdav.DAVTransaction;
25
26 /**
27  * <p><a HREF="http://www.rfc-editor.org/rfc/rfc2518.txt">WebDAV</a>
28  * <code>PROPPATCH</code> metohd implementation.</p>
29  *
30  * <p>As this servlet does not handle the creation of custom properties, this
31  * method will always fail with a <code>403</code> (Forbidden).</p>
32  *
33  * @author <a HREF="http://www.betaversion.org/~pier/">Pier Fumagalli</a>
34  */

35 public class PROPPATCH implements DAVMethod {
36
37     /**
38      * <p>Create a new {@link PROPPATCH} instance.</p>
39      */

40     public PROPPATCH() {
41         super();
42     }
43
44     /**
45      * <p>Process the <code>PROPPATCH</code> method.</p>
46      *
47      * <p>As this servlet does not handle the creation of custom properties,
48      * this method will always fail with a <code>403</code> (Forbidden).</p>
49      */

50     public void process(DAVTransaction transaction, VFSResource resource)
51     throws IOException JavaDoc {
52         throw new DAVException(403, "All properties are immutable");
53     }
54 }
55
Popular Tags