All Downloads are FREE. Search and download functionalities are using the official Maven repository.

it.could.webdav.methods.MOVE Maven / Gradle / Ivy

The newest version!
/* ========================================================================== *
 *         Copyright (C) 2004-2006, Pier Fumagalli          *
 *                            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 .       *
 *                                                                            *
 * 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 it.could.webdav.methods;

import it.could.webdav.DAVMultiStatus;
import it.could.webdav.DAVResource;
import it.could.webdav.DAVTransaction;

import java.io.IOException;


/**
 * 

WebDAV * MOVE metohd implementation.

* * @author Pier Fumagalli */ public class MOVE extends COPY { /** *

Create a new {@link MOVE} instance.

*/ public MOVE() { super(); } /** *

Process the MOVE method.

*/ public void process(DAVTransaction transaction, DAVResource resource) throws IOException { try { super.process(transaction, resource); resource.delete(); transaction.setStatus(204); } catch (DAVMultiStatus multistatus) { multistatus.write(transaction); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy