Package com.adito.vfs.webdav.methods

Source Code of com.adito.vfs.webdav.methods.PROPPATCH

/* ========================================================================== *
* Copyright (C) 2004-2005 Pier Fumagalli <http://www.betaversion.org/~pier/> *
*                            All rights reserved.                            *
* ========================================================================== *
*                                                                            *
* Licensed under the  Apache License, Version 2.0  (the "License").  You may *
* not use this file except in compliance with the License.  You may obtain a *
* copy of the License at <http://www.apache.org/licenses/LICENSE-2.0>.       *
*                                                                            *
* Unless  required  by applicable  law or  agreed  to  in writing,  software *
* distributed under the License is distributed on an  "AS IS" BASIS, WITHOUT *
* WARRANTIES OR  CONDITIONS OF ANY KIND, either express or implied.  See the *
* License for the  specific language  governing permissions  and limitations *
* under the License.                                                         *
*                                                                            *
* ========================================================================== */
package com.adito.vfs.webdav.methods;

import java.io.IOException;

import com.adito.vfs.VFSResource;
import com.adito.vfs.webdav.DAVException;
import com.adito.vfs.webdav.DAVMethod;
import com.adito.vfs.webdav.DAVTransaction;

/**
* <p><a href="http://www.rfc-editor.org/rfc/rfc2518.txt">WebDAV</a>
* <code>PROPPATCH</code> metohd implementation.</p>
*
* <p>As this servlet does not handle the creation of custom properties, this
* method will always fail with a <code>403</code> (Forbidden).</p>
*
* @author <a href="http://www.betaversion.org/~pier/">Pier Fumagalli</a>
*/
public class PROPPATCH implements DAVMethod {

    /**
     * <p>Create a new {@link PROPPATCH} instance.</p>
     */
    public PROPPATCH() {
        super();
    }

    /**
     * <p>Process the <code>PROPPATCH</code> method.</p>
     *
     * <p>As this servlet does not handle the creation of custom properties,
     * this method will always fail with a <code>403</code> (Forbidden).</p>
     */
    public void process(DAVTransaction transaction, VFSResource resource)
    throws IOException {
        throw new DAVException(403, "All properties are immutable");
    }
}
TOP

Related Classes of com.adito.vfs.webdav.methods.PROPPATCH

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.